N
N
Nikolai Dombrovsky2014-05-27 22:55:51
SQL
Nikolai Dombrovsky, 2014-05-27 22:55:51

How to disable sql autoincrement using C#?

Apparently, I'm wildly stupid, but still I just can't figure out how to disable sql auto-incrementation from C#.
I am reading data from an XML document into the adapter and I need to add it to a SQL database table, here I need to first disable auto-incrementation, insert data and turn it back on.
How to implement disable and enable?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Boxxy, 2014-05-28
@nDiviD

SETIDENTITY_INSERT

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question