December 12, 2012 at 8:48 pm
Comments posted to this topic are about the item IDENTITY INSERT
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
December 12, 2012 at 9:08 pm
December 12, 2012 at 9:47 pm
bitbucket-25253 (12/12/2012)
Thanks for reminding me of the basics ....
+1
when I saw identity question , I was sure it's cam out of Lokesh mind's bucket ...
Thanks for the basic reminder..
I did get it wrong though :P:hehe:
~ demonfox
___________________________________________________________________
Wondering what I would do next , when I am done with this one :ermm:
December 12, 2012 at 9:50 pm
when I saw identity question , I was sure it's cam out of Lokesh mind's bucket ...
Glad to know that! ๐
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
December 12, 2012 at 10:27 pm
good question to learn .I got it wrong,
test it after on 2000 box its showing error in insert statement..
I really need to upgrade servers ๐
-----------------------------------------------------------------------------
เคธเคเคเฅเคค เคเฅเคเคฃเฅ
December 12, 2012 at 11:36 pm
Nice question. Today i learnt a new one.
--
Dineshbabu
Desire to learn new things..
December 13, 2012 at 12:04 am
good question Lokesh...
It makes me remind of our last discussion for identity itself... ๐
+1 today also ๐
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
December 13, 2012 at 12:12 am
kapil_kk (12/13/2012)
good question Lokesh...It makes me remind of our last discussion for identity itself... ๐
+1 today also ๐
rightly said. This also made demonfox for fantastically quote like this
when I saw identity question , I was sure it's cam out of Lokesh mind's bucket ...
m glad to know that ๐
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
December 13, 2012 at 12:27 am
:-):-)
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
December 13, 2012 at 12:40 am
Nice question, thanks.
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
December 13, 2012 at 12:47 am
Didn't know that limitation so learnt something new today - Thanks!:-D
December 13, 2012 at 2:08 am
we always learn new things from SqlServer central :-):-)
_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
December 13, 2012 at 3:01 am
Interesting.
I thought that the second SET IDENTITY_INSERT would automatically set the TblA1 property off. But it actually gives an error.
SET IDENTITY_INSERT TblA1 ON;
GO
SET IDENTITY_INSERT TblA2 ON;
GO
I was kinda confused because setting both options to OFF or any table to OFF for that matter doesn't show any error message as in:
SET IDENTITY_INSERT TblA1 OFF;
GO
SET IDENTITY_INSERT TblA2 OFF;
GO
So thanks for that question as it may be really useful to know when building some complex scripts. I know, we shouldn't mess with identity values anyway. ๐
Best regards,
Andre Guerreiro Neto
Database Analyst
http://www.softplan.com.br
MCITPx1/MCTSx2/MCSE/MCSA
December 13, 2012 at 3:13 am
main thing is:-
IDENTITY_INSERT is already ON for table 'master.dbo.TblA1'. Cannot perform SET operation for table 'TblA2'.
December 13, 2012 at 4:00 am
i chose the wrong option but learned the RIGHT answer:-D
-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done;-)
Viewing 15 posts - 1 through 15 (of 43 total)
You must be logged in to reply to this topic. Login to reply