Results 1 to 3 of 3

Thread: Identity_insert

  1. #1
    Join Date
    Nov 2002
    Posts
    2

    Unanswered: Identity_insert

    Hi friends,
    I want to know whether IDENTITY_INSERT is on or off through an SQL Statement. Depending on whether IDENTITY_INSERT is ON or OFF i can use SET IDENTITY_INSERT ON or SET IDENTITY_INSERT OFF.

    Reply ASAP ....

    shanky........

  2. #2
    Join Date
    Nov 2002
    Location
    San Francisco
    Posts
    251

    Re: Identity_insert

    ASAP....

    try to use ERROR, if you set IDENTITY ON and it is ON, it generates error....


    see http://msdn.microsoft.com/library/de...t-set_7zas.asp


    jiri

  3. #3
    Join Date
    Feb 2002
    Posts
    2,232
    Setting identity_insert on only works for a single session that is trying to set identity_insert on more than 1 table is this what you are trying to check ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •