September 2, 2012 at 11:52 am
Hugo Kornelis (8/31/2012)
bitbucket-25253 (8/31/2012)
sknox (8/31/2012)
bitbucket-25253 (8/30/2012)
Nice question on the basics...A better supporting document/respected DBA is this blog posting by Steve Jones
Agreed. Also, if you haven't voted on the Connect submission for this issue, please consider doing so:
Voted
I voted as well - but I voted it down. I fail to see any realistic situation where I would need to be able to use IDENTITY_INSERT on a table variable, so I'd rather see the SQL Server Engineering team spend their time on other features.
I think that's a bad mistake. You are encouraging MS to give us rotten buggy documentation and unhelpful meaningless error messages. If of course you like bad documentation and sloppy error messages, you've done the right thing, but I didn't think you had those tastes.
Tom
September 2, 2012 at 5:01 pm
September 2, 2012 at 5:09 pm
L' Eomot Inversé (9/2/2012)
Hugo Kornelis (8/31/2012)
bitbucket-25253 (8/31/2012)
sknox (8/31/2012)
bitbucket-25253 (8/30/2012)
Nice question on the basics...A better supporting document/respected DBA is this blog posting by Steve Jones
Agreed. Also, if you haven't voted on the Connect submission for this issue, please consider doing so:
Voted
I voted as well - but I voted it down. I fail to see any realistic situation where I would need to be able to use IDENTITY_INSERT on a table variable, so I'd rather see the SQL Server Engineering team spend their time on other features.
I think that's a bad mistake. You are encouraging MS to give us rotten buggy documentation and unhelpful meaningless error messages. If of course you like bad documentation and sloppy error messages, you've done the right thing, but I didn't think you had those tastes.
Now the effort to do it correctly would be WHAT
Link to BOL SET IDENTITY_INSERT (Transact-SQL)
http://msdn.microsoft.com/en-us/library/ms188059(v=sql.90).aspx
database_name
Is the name of the database in which the specified table resides.
schema_name
Is the name of the schema to which the table belongs.
table
Is the name of a table with an identity column.
-- suggested editing
Use with a table variable will result in an error message
-- end suggested editing
September 5, 2012 at 3:21 am
Andrew Watson-478275 (8/31/2012)
Another point - the question would have required much more thought if one of the answers had been "1 SCREW, 2 SHOVEL, 3 SAW", which would have been the correct answer if it wasn't for the problem with Identity Insert on table variables.
ORDER BY was not specified so the actually order of the three items in the two wrong answers is surely irrelevant, no?
September 5, 2012 at 3:26 am
It's not the order that I was questioning, but the combination of string and identity. If it wasn't for the "feature" being highlighted, "Shovel" would be in there with an ID of 2, but this wasn't one of the given answers.
September 6, 2012 at 5:24 am
nice question...........
it is table variable........not temp or static table
Viewing 6 posts - 31 through 35 (of 35 total)
You must be logged in to reply to this topic. Login to reply