Forum Replies Created

Viewing 15 posts - 106 through 120 (of 1,033 total)

  • RE: Can This Work?

    I agree with Tom as well.

    Here's the question and answers

    Will this code execute and return a value?

    1. You will receive a syntax error

    2. No. You cannot call from on SP...

  • RE: Can This Work?

    Hugo Kornelis (3/1/2013)


    It is very easy to create infinite loops that will never terminate. For instance:

    DECLARE @i = 0;

    WHILE @i < 10;

    BEGIN

    SET @i = 1; ...

  • RE: Can This Work?

    ronmoses (3/1/2013)


    Without a BEGIN and END defining the body of proc sp1, I assumed it would only use the first statement, like an IF...THEN statement does. Then it would...

  • RE: Can This Work?

    ashwani24 (2/28/2013)


    I guess answer is Yes as it compiled and executed successfully but sql server restricts for nested looping to 32 level so it fails after execution of 32 times.

    +1...

  • RE: Can This Work?

    demonfox (2/28/2013)


    I got it right, but it was a sheer guess on the mind of OP ..

    will this code execute successfully

    it should have been mentioned as the 4th step..

    also, it...

  • RE: Updating the data in a table

    Good question.... Had to stare at it a while due to lack of sleep and too much food. Glad I figured it out and was able to asnwer it...

  • RE: OUTPUT - 1

    Mike Hays (2/27/2013)


    Ouch, my collation was SQL_Latin1_General_CP1_CS_AS. This became a lesson on collation instead of the OUTPUT clause. Opps.

    No No... you mean WhOoPs! 🙂

  • RE: OUTPUT - 1

    Good question... +1 for me.

    Shame on the typo... I didn't even notice the whoops vs Whoops issue until I read the thread in here.

  • RE: Creating Tables 2

    thanks for the question... was looking for a gotcha.... couldn't find one... answered what I thougt it would be... and was right for a change 🙂

  • RE: Basic SQLCMD Utilities

    Stewart "Arturius" Campbell (2/22/2013)


    These utilities were deprecated in SQL2008 and discontinued with SQL2012.

    Exactly... I was trying to identify that which had been deprecated. I know Profiler is deprecated in...

  • RE: Locking Hints

    Dineshbabu (2/21/2013)


    Nice and easy one. Initially I overlooked the word WTH and answered the question. After seeing the explaination only i realised it was mispelled and it will act as...

  • RE: Update with CASE statement

    Koen Verbeeck (2/18/2013)


    Spent 10 minutes looking for the catch, only to realize there wasn't one.

    Thanks for the question.

    I spent another 2-3 re-reading the phrase because it reads very oddly written...

  • RE: Stored Procedures and SQL Injection

    And the other thing to keep in mind is that if we don't occasionally mention SQL injection attacks and how to prevent them, we run the risk of developers in...

  • RE: EXECUTE

    Stewart "Arturius" Campbell (2/14/2013)


    Good back-to-basics question, thanks Lokesh

    +1. Had to think for a second about it... which is about all I have in thinking power today anyway. 🙂

  • RE: Collation conflict between SQL 2012 SP1 and SQL 2005 SP3 ?

    Yes, I wanted to post above what the fix was in case anybody else runs into this.

    If you're going from 2012 SP1 to 2005 SP3 (probably from 2012 of any...

Viewing 15 posts - 106 through 120 (of 1,033 total)