Forum Replies Created

Viewing 15 posts - 1,921 through 1,935 (of 5,504 total)

  • RE: Cursor and case function

    What do you need that c.u.r.s.o.r. for?

    Unless I'm missing something, the following statement should do it:

    UPDATE #mytable

    set permitnum =

    case

    when id = 1 then permit1

    when id = 2 then permit2

    when id...

  • RE: Varchar not recognized

    Just remove the "as" between your column names and the data type.

    Example:

    Instead of

    FranchiseGroup as varchar(255),

    use

    FranchiseGroup varchar(255),

  • RE: Selecting largest column value in a row (normalizing dimensions)

    Matt_V (2/14/2011)


    Hmmm, interesting idea. I haven't used computed persistant columns much so I'll have to look into that more, however it would my my queries much simplier again.

    Quick question,...

  • RE: Selecting largest column value in a row (normalizing dimensions)

    Would it be an option to add those three calculations as computed persisted columns?

    It came to my mind when you stated the inbound is infrequent...

  • RE: How to group by where we have char data type

    Just search thissite for "string concatenate for xml path".

  • RE: Detected but now Prevent This Deadlock

    rameshbhumi (2/14/2011)


    Hi,

    We are also seeing these Queries getting triggered from BO Server to Database. I would like to know what exactly the purpose of these Queries. It will be Great...

  • RE: how do u know..

    EmilyCenters (2/13/2011)


    thanks

    Spam. Reported.

  • RE: delete query

    duplicate post. No replies please.

    Discussion already started here.

    @praveen: I asked you before not to yell at us. All it does is limiting the replies you might get.

  • RE: delete help using output.deleted option

    duplicate post. No replies please.

    Discussion already started here.

    @praveen: I asked you before not to yell at us. All it does is limiting the replies you might get.

  • RE: delete help using output.deleted option in sql

    praveensc2003 (2/13/2011)


    Hey i just checked with this query given by you

    still i am getting error message. Could you please help me to resolve this issue

    Msg 547, Level 16, State...

  • RE: delete help using output.deleted option in sql

    Except for the double usage of some parts of the statement it shoult work...

    DECLARE @DeleteOutput3 TABLE (CONID INT PRIMARY KEY CLUSTERED)

    DELETE Contact

    OUTPUT

    deleted.CONTACTID

    INTO @DeleteOutput3

    WHERE CONTACTID = 10;

    DELETE FROM SalesHeader INNER JOIN

    @DeleteOutput3...

  • RE: Trouble when count by week in SQL

    Please read and follow the advice given in the first link in my signature on how to provide sufficient information. This will include table def, ready to use sample data,...

  • RE: Very Complicate Query....

    rajesh-303966 (2/12/2011)


    Lutz,

    Is it possible to make the pos=1 and RtnSetid1 dynamic as

    By declaring variable value upto 6 for ex. x <= 6 posx and RtnSetidx likethat....

    Kindly help me on...

  • RE: Very Complicate Query....

    Ninja's_RGR'us (2/12/2011)


    ...

    That's precisely why Mr Magoo was asking the question. That's something that should be handled at the presentation layer. Not by t-sql.

    While it CAN be done....

  • RE: OPENXML issue

    There are two issues:

    #1: in line 1 you have [Customer Customer ID="1" ] There seems to be an additional blank after the second "Customer". It should either be Customer_ID or...

Viewing 15 posts - 1,921 through 1,935 (of 5,504 total)