Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase «««1234

Temporary Objects 2 Expand / Collapse
Author
Message
Posted Monday, March 12, 2012 7:34 AM


Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Friday, June 13, 2014 3:03 PM
Points: 594, Visits: 655
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
Post #1265188
Posted Monday, March 12, 2012 9:14 PM


SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Monday, November 10, 2014 3:37 AM
Points: 904, Visits: 1,491
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
Post #1265674
Posted Wednesday, March 14, 2012 7:52 PM
SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Sunday, April 27, 2014 7:45 PM
Points: 1,589, Visits: 253
Good question. Thanks for submitting.

http://brittcluff.blogspot.com/
Post #1267183
Posted Wednesday, March 21, 2012 1:33 PM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Friday, October 24, 2014 4:29 PM
Points: 872, Visits: 954
Good question! Thanks.
Post #1270467
Posted Wednesday, April 4, 2012 9:02 PM


Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Wednesday, January 22, 2014 2:58 PM
Points: 531, Visits: 965
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
Post #1278533
Posted Thursday, January 10, 2013 7:11 AM


SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Monday, November 24, 2014 5:19 AM
Points: 981, Visits: 565
Can anyone help me in simulating the question in management studio without any application.

Thanks


--
Dineshbabu
Desire to learn new things..
Post #1405421
Posted Thursday, January 10, 2013 7:16 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Yesterday @ 5:21 AM
Points: 6,098, Visits: 8,367
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 MVP
Visit my SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis
Post #1405427
Posted Thursday, January 10, 2013 11:13 PM


SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Monday, November 24, 2014 5:19 AM
Points: 981, Visits: 565
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..
Post #1405770
Posted Wednesday, September 4, 2013 6:15 AM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Thursday, November 20, 2014 11:15 PM
Points: 97, Visits: 133
Thought the typo was actually a trick so selected error for both. Turns out it's just a typo!
Post #1491249
« Prev Topic | Next Topic »

Add to briefcase «««1234

Permissions Expand / Collapse