Forum Replies Created

Viewing 15 posts - 16 through 30 (of 187 total)

  • RE: Assigning categories to values 2

    Easier question with lot more information.

  • RE: INSERT

    Hugo,

    In this scenario, eventhough if we run both insert statements as single batch, first statement will be executed successfully and we will get error only on second one rite?...

  • RE: INSERT

    Hugo Kornelis (5/18/2013)


    sea4stars (5/18/2013)


    Interesting: After I decided on my answer of the first insert running ok, and the second insert failing, I fired up my trusty copy of...

  • RE: INSERT

    Earlier I'm aware of Index and constraints will not be transferred to destination table..but about Computed columns i came to know only from this QotD. Thanks kapil.

  • RE: REPLICATE

    Danny Ocean (5/22/2013)


    Basic and easy one.:-)

    Thanks for question !!!

    +1

  • RE: EXCEPT - 1

    Nice and interesting one..

  • RE: CHARINDEX()

    Calibear (5/21/2013)


    Thanks for all the tips. This is my first attempt at a Question of the Day, so I will definitely take all your suggestions into account (including pointing to...

  • RE: The Subquery

    Great question..

  • RE: Create Table

    Good Information..

  • RE: FK to IDENTITY

    nenad-zivkovic (4/24/2013)


    kapil_kk (4/23/2013)


    Hi,

    I was not aware of the fact that after making

    SET IDENTITY_INSERT dbo.Test OFF;

    identity value gets incremented. I am confused now as what is the purpose of...

  • RE: Handling NULL

    Kapil good going...

    Good chance to recall return types & Data type precedence of ISNULL,CONVERT & CASE...

  • RE: Triggers 1

    Thanks for your reply Hugo.

    Hugo Kornelis (4/19/2013)

    By the way, it's very easy to check this kind of questions for yourself. Just copy the code in SSMS, make changes, and see...

  • RE: Triggers 1

    Thanks Hugo..

    If insert statement was within Explicit transaction then even first row will not be inserted and the result of final query will be 0. Am I right?

    Whether XACT_ABORT...

  • RE: COUNT() Function

    srienstr (4/18/2013) I find it more useful to get count to ignore certain values using count(nullif(ProviderName,''))

    Nice...

  • RE: COUNT() Function

    Hugo Kornelis (4/18/2013)


    Dineshbabu (4/18/2013)


    Is there anyway to make COUNT() to consider even NULL values?? I mean any set options or something like that?

    Yes. Just use COUNT(*).

    Thanks man.. You hit me...

Viewing 15 posts - 16 through 30 (of 187 total)