Temporary Objects 2

  • I got it for the right logical reason but on the wrong object (constraint, not temp table). Great question!

    Peter Trast
    Microsoft Certified ...(insert many literal strings here)
    Microsoft Design Architect with Alexander Open Systems

  • Great question.

    But am I the only that thought that the syntax error was part of the question?

    But even so there wouldn't be a right answer for that.

    I didn't understand the explanations about the conflict in object names.

    Doesn't that only happen with global temp tables (those starting with ##)?

    EDIT: Nevermind. I read the error messages wrong.

    Best regards,

    Andre Guerreiro Neto

    Database Analyst
    http://www.softplan.com.br
    MCITPx1/MCTSx2/MCSE/MCSA

  • Good question. Thanks for submitting.

    http://brittcluff.blogspot.com/

  • Good question! Thanks.

  • I did not continue to read the rest of the script after seeing the 2 "," back to back..

    therefore, I have answered the last 2 .. since both will fail..

    oh well, whatever..

    Cheers,
    John Esraelo

  • Can anyone help me in simulating the question in management studio without any application.

    Thanks

    --
    Dineshbabu
    Desire to learn new things..

  • Dineshbabu (1/10/2013)


    Can anyone help me in simulating the question in management studio without any application.

    Using Management Studio, create the stored procedure as specified in the question, but add a command WAITFOR DELAY '0:00:10'; to simulate the 10 second running time.

    Now open two connections, and type EXEC GetData_Date; in both. Hit execute in one tab, switch to the other tab, then hit execute there.


    Hugo Kornelis, SQL Server/Data Platform MVP (2006-2016)
    Visit my SQL Server blog: https://sqlserverfast.com/blog/
    SQL Server Execution Plan Reference: https://sqlserverfast.com/epr/

  • Hugo Kornelis (1/10/2013)


    Dineshbabu (1/10/2013)


    Can anyone help me in simulating the question in management studio without any application.

    Using Management Studio, create the stored procedure as specified in the question, but add a command WAITFOR DELAY '0:00:10'; to simulate the 10 second running time.

    Now open two connections, and type EXEC GetData_Date; in both. Hit execute in one tab, switch to the other tab, then hit execute there.

    Thanks Hugo..

    I already tried this, but i used WAITFOR in exec statement, so i'm unable to simulate this... Now i got it..

    --
    Dineshbabu
    Desire to learn new things..

  • Thought the typo was actually a trick so selected error for both. Turns out it's just a typo! 🙁

  • With some logical thinking, got it right, thanx 🙂

Viewing 10 posts - 31 through 40 (of 40 total)

You must be logged in to reply to this topic. Login to reply