Forum Replies Created

Viewing 15 posts - 226 through 240 (of 429 total)

  • RE: Usage of Null

    Lokesh Vij (6/4/2013)


    An easy one for the day.

    SET ANSI_NULLS ON --> enforces SQL-92 standard which says that all equal to and not equal to with NULL evaluates to FALSE.

    I think...

  • RE: TOP clause WITH TIES

    Great question!

    I did spot the difference in the two columns, but messed up the logic when answering. :crazy:

  • RE: Several Jobs or One Jobs with several steps?

    It really depends on what you are trying to do and how you want to manage it.

    Here are some things to consider:

    Are these tasks dependent on each other?

    Can any of...

  • RE: Event Notification on Server

    Thank you for this question. It was quite timely for me, as I've been looking into setting up this exact scenario for auditing server connections. It took me...

  • RE: Columnstore index

    I almost got caught up on the primary key, as I knew clustered index columns needed to be included but didn't know the columns would be added automatically when they...

  • RE: INTO Identities

    ammon.poage (5/13/2013)


    First time poster here. I got it wrong, which is fine. When I answer a question, I try to answer without running the code. Sometimes I...

  • RE: INTO Identities

    Interesting, I knew it was carried over for simple select queries, but would not have expected the IDENTITY to be included for a query including a GROUP BY.

  • RE: QUERY and TABLE HINTS

    Argh, I figured the answers were accidentally inverted, but went by the wording of the question anyway when I answered.

    Interesting that ForceScan and ForceSeek seem to work without "WITH" though,...

  • RE: Triggers 2

    I was surprised this was your question Hugo. I didn't think it was yours when I saw the Count(*) in the trigger! 😉

  • RE: FK to IDENTITY

    Great question! Thank you for keeping the code clear and focused.

  • RE: COUNT() Function

    kapil_kk (4/15/2013)


    For the last query:

    select COUNT(convert(int,NULL)) from #temp

    It will return 0 because when you execute the query:

    SELECT CONVERT(int,NULL) it will return NULL and as the return type of COUNT is...

  • RE: Endpoints

    Mighty (4/12/2013)


    Shouldn't TCP in the answers be TSQL?

    TCP is one of the two protocols that can be used, TSQL is a payload type.

    I was wondering this myself. The documentation...

  • RE: TRIGGERS

    Arrrr, ya got me. I fell for the logic error and completely missed the TEXT data type.

    :blink::blink:

  • RE: ISNUMERIC

    Christian Buettner-167247 (4/8/2013)


    As far as I understand, IsNumeric works roughly like this:

    CASE WHEN COALESCE(

    TRY_CAST(@input AS numeric)

    ,TRY_CAST(@input AS bigint)

    ,TRY_CAST(@input AS money)

    ,TRY_CAST(@input AS smallint)

    ,TRY_CAST(@input AS smallmoney)

    ...

  • RE: SSRS email report depending on report field

    Chrissy321 (4/4/2013)


    Yes, its called a data driven subscription.

    http://msdn.microsoft.com/en-us/library/ms169673.aspx

    I believe you need Enterprise Edition for this.

    Fantastic, thanks Chrissy321! Where were you 6 months ago? :-P:-D

Viewing 15 posts - 226 through 240 (of 429 total)