Forum Replies Created

Viewing 15 posts - 61 through 75 (of 78 total)

  • RE: SELECT FUN

    Hugo Kornelis (5/8/2009)


    saurabh.dwivedy (5/7/2009)


    I got it wrong because I thought TWO NULL Values are NOT supposed to be same(identical). So I chose the option with 3 rows. Quirk of SQLServer?

    No...

  • RE: SELECT FUN

    I got it wrong because I thought TWO NULL Values are NOT supposed to be same(identical). So I chose the option with 3 rows. Quirk of SQLServer?

  • RE: specifying a combined key

    vidhyasudha (4/30/2009)


    Here are my table scripts.

    CREATE TABLE Product

    (

    product_id varchar(20), --- Primary key

    product_name varchar(30)

    Constraint PK_product_id Primary Key

    ) ON Primary

    Create TABLE Sku

    (

    sku_id varchar(20), ...

  • RE: How could i get following result

    Point taken. That was just an after thought. That's the way I had read the requirement, even though as you mention, the OP had indeed not mentioned this as a...

  • RE: using a variable for a subscript in xquery value

    Anything that I enclose in [] has to be numeric otherwise SS throws an error. In your solution you are using Sql variable as well as hardcoding the subscript TO[sql...

  • RE: How could i get following result

    lmu92 (4/28/2009)


    Hi,

    did you try the PATINDEX function?

    The following code will check the start position of each value from your table within the given search string. It will return the max....

  • RE: XACT_ABORT ON

    Thanks that's a good point worth being on the lookout for.

  • RE: Update table using procedure - Help

    steve dassin (4/26/2009)


    saurabh.dwivedy (4/25/2009)


    Because ideally I am invoking the same principle that is generally applied in SQL anywhere...viz "the property of closure", something which forms the basis of nested statements...

  • RE: Convert column into row

    Thanks Lutz. I understand the substring part. I was trying to make sense of the 1000 part. Anyway I have got it now. Thanks for taking the time to explain.

  • RE: Convert column into row

    Ken Simmons (4/26/2009)


    There are a couple of ways you can do this. Here is one example.

    Declare @Table Table (id int, color varchar(10))

    Insert Into @Table

    Select 1, 'red' UNION ALL

    Select 1, 'blue'...

  • RE: XACT_ABORT ON

    after some testing on dev I found without begin tran if i use Xact_abort on the transactions are rolled back for a single transaction like insert, update or delete but...

  • RE: execute as user inside stored procedure

    I will attempt to answer this question: I have gone thru the link posted in this thread and my answer is based on the understanding derived from that msdn article....

  • RE: Use of GO

    kruti (4/13/2009)


    Ok. so pointer is again come to first question of this post.

    Why it is giving error in his execution?

    As has been mentioned by Mr Corbett, I don't think GO...

  • RE: Use of GO

    Arup,

    You can always mask your code in such a way that the proprietary information is not revealed. It would be helpful especially to newbies like myself to learn practical solutions...

  • RE: Use of GO

    GO is only a batch separater if it starts in column 1.

    Thanks Jeff...I learnt something new again.

Viewing 15 posts - 61 through 75 (of 78 total)