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

What will the max id be? Expand / Collapse
Author
Message
Posted Saturday, December 22, 2012 1:24 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, January 22, 2013 7:39 AM
Points: 2, Visits: 4
i think the answer will be "invalid object" as in last query we are dropping the table.
Post #1399663
Posted Saturday, December 22, 2012 6:11 AM
SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Wednesday, July 30, 2014 11:38 AM
Points: 1,826, Visits: 479
If you run all the lines in the question in a query window you will see you don't get an invalid object error. The table doesn't get dropped before the selects are complete.
Post #1399674
Posted Thursday, December 27, 2012 1:34 PM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Thursday, January 31, 2013 8:01 AM
Points: 1,232, Visits: 1,046
Great question.
Post #1400738
Posted Monday, December 31, 2012 5:31 AM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Monday, July 21, 2014 3:43 AM
Points: 1,938, Visits: 1,162
Easy one.

Malleswarareddy
I.T.Analyst
MCITP(70-451)
Post #1401363
Posted Tuesday, January 15, 2013 12:55 PM
SSChasing Mays

SSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing Mays

Group: General Forum Members
Last Login: Wednesday, September 25, 2013 8:54 PM
Points: 606, Visits: 151
Good But Easy One.
Post #1407440
Posted Monday, January 21, 2013 11:44 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Monday, August 18, 2014 3:26 AM
Points: 262, Visits: 232
if we use delete instead of truncate reseed will not work...... the answer should be 4,8........

Manik
You cannot get to the top by sitting on your bottom.
Post #1409663
« Prev Topic | Next Topic »

Add to briefcase «««1234

Permissions Expand / Collapse