Forum Replies Created

Viewing 15 posts - 106 through 120 (of 205 total)

  • RE: Number of Rows

    Mighty (1/18/2013)


    Dave62 (1/18/2013)... I was interested and curious about why the message (1 row(s) affected) was being returned. It would appear that some have confirmed my suspicion that the...

  • RE: Number of Rows

    paul s-306273 (1/18/2013)


    In my naivete I'm thinking 'so what?'.

    Is there a relevance to this?

    No, I don't think there is any "relevance" so to speak. Some questions are just trivia.

    I was...

  • RE: Executing dynamic SQL

    Thanks for the answers! I'd much rather learn the best practice by asking here instead of finding out the hard way. ๐Ÿ™‚

  • RE: Executing dynamic SQL

    GilaMonster (1/17/2013)


    Because it allows for parameterisation of the dynamic SQL (which exec does not). That leads to better plan reuse and better security

    Thanks for the answer!

    Does this apply only to...

  • RE: What's the best way to count?

    gkganeshbe (12/26/2012)


    Is there any performance difference in the below given three queries.

    Note: Col1 is NOT NULL column

    SELECT COUNT(*) FROM Sales.SalesOrderDetail;

    SELECT COUNT(Col1) FROM Sales.SalesOrderDetail;

    SELECT COUNT(0) FROM Sales.SalesOrderDetail;

    Good question. I ran...

  • RE: UNIQUE constraint

    Thanks for the question!

    Lucky for me I answered before having my coffee. After less than 5 seconds of thought I chose the correct answer because I have used filtered...

  • RE: What will the max id be?

    palotaiarpad (12/19/2012)


    I'm also wrong, but i learned something. Could someone please explain, why is the identity resetted after a truncate? For me is a possible source of inconsitency.

    Hello, if resetting...

  • RE: Aggregates

    ashokkumar.thangavel-639050 (12/6/2012)


    Hi

    I need a favor here.. Guys, could you please help me on this below scenario,

    I have one ssis 2005 package, in this running one sp which will...

  • RE: SET Options - 2

    bitbucket-25253 (12/4/2012)


    My apologies to all .....

    1. I did test the code multiple times ...

    2. When testing the ; was NOT present.

    3. I can only guess,...

  • RE: SET Options - 2

    Hugo Kornelis (12/4/2012)


    I had to make a guess as to the author's intention and preparation.

    Did he actually try the code himself? In that case, it is a nasty trick question,...

  • RE: SQL

    I got this question right after about 5 seconds or less of thought. My reasoning was that if you have to set something (like NULL Foreign keys or cascading deletes...

  • RE: Queries

    Jan Van der Eecken (11/28/2012)


    ...

    To Dave62, just a thought, given all the negative feedback you had, maybe it would have been a better idea to just post this one...

  • RE: Queries

    I came across this odd behavior in SSMS the other day when I was looking at estimated execution plans and thought I'd share it with the community.

    Sorry if some do...

  • RE: The Small Print

    Great points about looking before leaping into the cloud!

    "... just donโ€™t forget to read the small print."

    It may be worse than not forgetting to read the small print because you...

  • RE: Table Variables

    Which of the following statements is true of table variables in SQL Server 2008, 2008 R2, and 2011? (select 6)

    It's not possible to pick 6 true statements for all of...

Viewing 15 posts - 106 through 120 (of 205 total)