.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+
- create sequence in db
create sequence dbo.sequence_name start 1 increment 1;
- query application using
select next value dbo.sequence_name;
- remember in application, show user
- use when insert db
Comments
Post a Comment