Results 1 to 4 of 4
  1. #1
    manik's Avatar
    manik is online now Om Shanti!
    Join Date
    Apr 2008
    Location
    Boston, USA
    Posts
    13,175
    Thanks
    744
    Thanked 699 Times in 550 Posts
    Blog Entries
    4
    Feedback Score
    4 (100%)

    Default Set Identity Insert On Off - Microsoft SQL

    How to Set Identity Insert On Off - Microsoft SQL
    How do you set the insert on identity column on or off in MS SQL?

    To set identity insert on:
    SET IDENTITY_INSERT tablename ON

    To set identity insert off:
    SET IDENTITY_INSERT tablename OFF
    Free Classified Ads & BUSINESS/PROFESSIONAL SOCIAL NETWORK


  2. #2
    alstonfered is offline Freshman
    Join Date
    Jan 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default

    Hello manek,
    You have shown one way for setting Identity insert.
    The other way is in which table you have to make Identity insert you have to go to the property of the table.
    There you have to select the Identity specification and make it yes.

  3. #3
    fostin is offline Freshman
    Join Date
    Jul 2010
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default

    thanks for letting us know how to do Identity insert. very handy.

  4. #4
    mandy is offline Junior
    Join Date
    Apr 2011
    Posts
    332
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Feedback Score
    0

    Default

    after using set identity_insert on,I got the error as Cannot perform SET operation as table is not a user table,can any body help me out?

Similar Threads

  1. Replies: 4
    Last Post: 08-16-2011, 05:29 AM
  2. Data Import Export with Microsoft SQL DTS
    By manik in forum Databases
    Replies: 1
    Last Post: 06-26-2009, 09:05 AM
  3. Microsoft Warns of SQL Attack
    By Amit.Verma in forum Microsoft
    Replies: 3
    Last Post: 12-23-2008, 11:18 AM
  4. Split Comma Delimited Value : Microsoft SQL
    By manik in forum Databases
    Replies: 1
    Last Post: 09-29-2008, 07:26 PM
  5. Replies: 0
    Last Post: 05-01-2008, 11:44 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Partners: BOSTON WEB DEVELOPER, LLC   |   WEBCOSMO CLASSIFIEDS