November 22, 2006 at 3:40 am
Hi,
How to insert a value into a table which is having only one column of identity type by using a SQL query " Insert into "
November 22, 2006 at 3:50 am
Hi,
You should consider you database design why you are using the one column table having the identity field.
You should make the entry into the table by Making the Identity Insert ON/OFF.
for this you can use
SET IDENTITY_INSERT YourTableName ON
INSERT INTO products (id) VALUES(3)
SET IDENTITY_INSERT YourTableName OFF
Cheers
cheers
November 22, 2006 at 3:51 am
Hi,
You should consider you database design why you are using the one column table having the identity field.
You should make the entry into the table by Making the Identity Insert ON/OFF.
for this you can use
SET IDENTITY_INSERT YourTableName ON
INSERT INTO YourTableName (id) VALUES(3)
SET IDENTITY_INSERT YourTableName OFF
Cheers
cheers
November 22, 2006 at 5:01 am
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply