R
R
Roman Kazarov2019-09-20 11:13:28
C++ / C#
Roman Kazarov, 2019-09-20 11:13:28

How to write the id to the database correctly?

I can not make an entry in the id field, it constantly gives an error. If I manually enter a number, then everything is fine. And if I try to write through a variable that produces such error. In general, I would like the base to write the id on its own, but I did not find how to do it.5d848a196454f059343323.jpeg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin Tsvetkov, 2019-09-20
@tsklab

IDENTITY
Open your database in SSMS and change the column property5d84a240d5fe8137284620.png

S
Stalker_RED, 2019-09-20
@Stalker_RED

https://www.google.com/search?q=id+autoincrement (add subd name)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question