i want primary key of table to be inserted automatically. i've set its in desgin table as Identity = Yes; Seed=1
i want my application all other attributes except primary key which i've set atutomatically inserted.
but by doing this; it doesn't insert its value. instead it enters 0
can u plz help me in doing so?
Hi,
You are probably not doing things in the right way. It's a good idea to try ceating the table using a create table script and see if the problem persists or not:
CREATE TABLE TableName( PrimaryKeyColumnNameINT IDENTITY PRIMARY KEYNOT NULL, Column1 DataType, ...)
Happy SQLing!
Mehrdad
No comments:
Post a Comment