.net - C# WPF Generate a Sequential int value and Save it on SQL Server -


i have situation need generate sequential int value , save on database, it's never can duplicated. i'm new in c# wpf, , how can it? generated value must displayed in textbox.

possible scenario using sequence sql server 2012+

  1. create sequence in db create sequence dbo.sequence_name start 1 increment 1;
  2. query application using select next value dbo.sequence_name;
  3. remember in application, show user
  4. use when insert db

Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -