IDENTITY INSERT

  • Comments posted to this topic are about the item IDENTITY INSERT

    ~ Lokesh Vij


    Guidelines for quicker answers on T-SQL question[/url]
    Guidelines for answers on Performance questions

    Link to my Blog Post --> www.SQLPathy.com[/url]

    Follow me @Twitter

  • Thanks for reminding me of the basics ....

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • 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:

  • when I saw identity question , I was sure it's cam out of Lokesh mind's bucket ...

    Glad to know that! ๐Ÿ™‚

    ~ Lokesh Vij


    Guidelines for quicker answers on T-SQL question[/url]
    Guidelines for answers on Performance questions

    Link to my Blog Post --> www.SQLPathy.com[/url]

    Follow me @Twitter

  • 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 ๐Ÿ˜‰

    -----------------------------------------------------------------------------
    เคธเค‚เค•เฅ‡เคค เค•เฅ‹เค•เคฃเฅ‡

  • Nice question. Today i learnt a new one.

    --
    Dineshbabu
    Desire to learn new things..

  • 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/

  • 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


    Guidelines for quicker answers on T-SQL question[/url]
    Guidelines for answers on Performance questions

    Link to my Blog Post --> www.SQLPathy.com[/url]

    Follow me @Twitter

  • :-):-)

    _______________________________________________________________
    To get quick answer follow this link:
    http://www.sqlservercentral.com/articles/Best+Practices/61537/

  • Nice question, thanks.

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

  • Didn't know that limitation so learnt something new today - Thanks!:-D

  • we always learn new things from SqlServer central :-):-)

    _______________________________________________________________
    To get quick answer follow this link:
    http://www.sqlservercentral.com/articles/Best+Practices/61537/

  • 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

  • main thing is:-

    IDENTITY_INSERT is already ON for table 'master.dbo.TblA1'. Cannot perform SET operation for table 'TblA2'.

  • 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