Создайте отдельно таблицу серийных номеров, возьмите оттуда серийный номер и автоинкрементируйте.C#

Место общения программистов C#
Ответить Пред. темаСлед. тема
Anonymous
 Создайте отдельно таблицу серийных номеров, возьмите оттуда серийный номер и автоинкрементируйте.

Сообщение Anonymous »


I want to create a table that will store sequence for different fields against each company in a desktop application through SQL and C#. When the data is entered, the fields should pick up sequence from the sequence table and auto increment the same with each entry. The user will get the discretion to choose the starting value of the series. Every time the user changes the starting value of the series the same is picked up in the data entry table and then auto incremented with each entry.

I am trying to achieve this with the help of a stored procedure but unable to to so. I want to enter the first entry of sequence as it is from the sequence table and then increment it. When the user changed the starting series the table should pick and start with that number and increment accordingly.


Источник: https://stackoverflow.com/questions/781 ... ere-and-au
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «C#»