T
Thad
I am trying to run an insert statement against a table, and I get an
error: "Can not insert explicit value for identity column in table
"table name" when Identity_Insert is set to off."
Now, in the set up of the table, when I populate it, I set the Column
in the columns collection to be an identity field and I set it to true
and all that.
This message seems to imply that I need to set something on the SQL
Server side, through the database, but I'm thinking I shouldn't have
to do that.
How do I get around this? Can I just set some property through the
ADO.Net? If so, what am I missing? I looked through about four pages
of old posts and didn't see anything similiar, but I'm sure this has
come up, and I apologize if I'm asking somethign that's been addressed
already.
Thanks,
Thad.
error: "Can not insert explicit value for identity column in table
"table name" when Identity_Insert is set to off."
Now, in the set up of the table, when I populate it, I set the Column
in the columns collection to be an identity field and I set it to true
and all that.
This message seems to imply that I need to set something on the SQL
Server side, through the database, but I'm thinking I shouldn't have
to do that.
How do I get around this? Can I just set some property through the
ADO.Net? If so, what am I missing? I looked through about four pages
of old posts and didn't see anything similiar, but I'm sure this has
come up, and I apologize if I'm asking somethign that's been addressed
already.
Thanks,
Thad.