|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Wednesday, May 08, 2013 3:44 AM
Points: 2,173,
Visits: 1,350
|
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Yesterday @ 6:12 AM
Points: 2,526,
Visits: 3,620
|
|
Depending on your settings, the error can also be a valid answer:
Server: Msg 208, Level 16, State 1, Line 1 Invalid object name 'a'.
Best Regards,
Chris Büttner
|
|
|
|
|
SSCrazy Eights
        
Group: General Forum Members
Last Login: Today @ 2:11 AM
Points: 9,378,
Visits: 6,473
|
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Yesterday @ 6:12 AM
Points: 2,526,
Visits: 3,620
|
|
The following setting will cause the error:
SET IMPLICIT_TRANSACTIONS ON If this is turned on, the create table statement will also be rolled back, causing the error.
Best Regards,
Chris Büttner
|
|
|
|
|
SSCrazy Eights
        
Group: General Forum Members
Last Login: Today @ 2:11 AM
Points: 9,378,
Visits: 6,473
|
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: 2 days ago @ 10:36 AM
Points: 1,405,
Visits: 253
|
|
The insert statement has a syntax that is unacceptable to SQL Server 2005. So why wasn't it stated as being compatible with SQL Server 2008 and later only?
We should get our points back.
Kenneth Spencer
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Saturday, May 18, 2013 5:49 AM
Points: 202,
Visits: 1,043
|
|
kaspencer (4/22/2010) The insert statement has a syntax that is unnacptable to SQL Server 2005. So why wasn't it stated as being compatible with SQL Server 2008 and later only?
We should get our points back.
Kenneth Spencer
Digesting loss of points, is if not Very Tough but at least, it is Tough, I think. It’s frequent in case QODs, so be brave, as me lost last day’s points.
|
|
|
|
|
Right there with Babe
      
Group: General Forum Members
Last Login: Thursday, January 24, 2013 3:51 AM
Points: 787,
Visits: 1,192
|
|
I got this right, but only because the question was on ROLLBACK and I gambled on the INSERT statement being an mistake/typo. I didn't know that it would run OK as is on SQL Server 2008, so I did learn something. It should have been stated which version this applied to.
Regards, Cath
"Hang on lads, I've got a great idea. " Michael Caine (Charlie Croker) The Italian Job
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Thursday, February 14, 2013 5:23 AM
Points: 15,
Visits: 27
|
|
My answer is ERROR
as insert query given me error. moreover yes Rollback can rollback pages truncated by TRUNCATE.
Msg 102, Level 15, State 1, Line 1 Incorrect syntax near ','.
Thanks
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Monday, April 01, 2013 11:51 PM
Points: 292,
Visits: 794
|
|
So I learnt about a new feature of the INSERT statement in SQL 2008. Definitely use feature that when systems finally upgraded to SQL 2008.
Perhaps I should have paid closer attention at the title of the QOD to give me a hint, rather than the obvious syntax error based on current SQL version I generally use.
------ Robert
|
|
|
|