How to generate Auto Unique Number | Auto ID Number in C# using SQL server with source code

preview_player
Показать описание
In this Video I am explaining how you can create un system that auto increment the ID NUMBER using C# with SQL Server.
Рекомендации по теме
Комментарии
Автор

Appreciate the Video Diego!


Im having an error, which is - 'Object reference not set to an instance of an object.' cmd was null.

Do you have a solution for this?

matheeshagunarathne
Автор

Thanks for the video. I have a question

Create a student table like
id name
01 A
02 B
03 C

Delete the student with id 03, and insert new student. Now, the student management table shows us new student's ID as 03. But, SQL's auto increment makes it 05.

Do I have a misunderstanding or am I missing any part

metin
Автор

hi this video was very effective and thank you but i'm having an error with my data base. It shows violation of primary key in my data base

harshadevaka