Results 1 to 4 of 4
-
11-24-2009, 12:08 PM #1
- 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%)
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 OFFFree Classified Ads & BUSINESS/PROFESSIONAL SOCIAL NETWORK
-
01-27-2010, 11:25 PM #2
Freshman
- Join Date
- Jan 2010
- Posts
- 3
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
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.
-
07-28-2010, 08:23 PM #3
Freshman
- Join Date
- Jul 2010
- Posts
- 28
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
thanks for letting us know how to do Identity insert. very handy.
-
04-05-2011, 02:08 AM #4
Junior
- Join Date
- Apr 2011
- Posts
- 332
- Thanks
- 0
- Thanked 2 Times in 2 Posts
- Feedback Score
- 0
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
-
Reindexing Microsoft SQL Databases to Optimize Performance
By webdigo in forum DatabasesReplies: 4Last Post: 08-16-2011, 05:29 AM -
Data Import Export with Microsoft SQL DTS
By manik in forum DatabasesReplies: 1Last Post: 06-26-2009, 09:05 AM -
Microsoft Warns of SQL Attack
By Amit.Verma in forum MicrosoftReplies: 3Last Post: 12-23-2008, 11:18 AM -
Split Comma Delimited Value : Microsoft SQL
By manik in forum DatabasesReplies: 1Last Post: 09-29-2008, 07:26 PM -
New news on Microsoft buying Yahoo today(Off Yahoo News)
By chris07 in forum YahooReplies: 0Last Post: 05-01-2008, 11:44 AM


Reply With Quote

