SET IDENTITY_INSERT [dbo].[YourTableName] ON GO INSERT INTO [dbo].[YourTableName] ([ID] ,[Code] ,[Description] ,[Required_by_System] ) VALUES (9 ,900 ,'Record Updated' ,'Y' ) GO SET IDENTITY_INSERT [dbo].[YourTableName] OFF GO
The .NET Framework and ASP.NET help you create web applications and services for Windows.
Tuesday, June 24, 2014
How to Insert Values into an Identity Column in SQL Server?
To insert values into an identity column, you have to first set identity_insert ON and after inserting or updating, you have to set it OFF like following:
Subscribe to:
Post Comments (Atom)
React-select is very slow on larger list - Found solution - using react-window
I had more than 4000 items in searchable dropdownlist. I have used react-select but it was very slow. finally I found complete solution to ...
-
Today I will show you how to use new salesforce toolkit for .NET Application. Follows the steps: Step 1. Create a project with C# ASP.NET ...
-
Classic mode is a mode where IIS only works with ISAPI extensions and ISAPI filters directly. In fact, in this mode, ASP.NET is just an ISA...
No comments:
Post a Comment