我想要在Sql Server中的存储过程中排队 [英] I want To Queue On Store Procudure in Sql Server

查看:243
本文介绍了我想要在Sql Server中的存储过程中排队的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好先生/女士





我在VB.Net上有sql server的应用程序。我有一份表格注册。我使用商店程序生成代码



Hello Sir/Madam


I Have A application on VB.Net with sql server . And i have a form Registration . And i am generate code using store procedure

My table

  CODE (Primary Key)            Name           Address
        1                       Nawaz              new delhi
        2                       niyaz              dubai

我正在使用商店程序生成代码..



现在我的问题是...我已经在网络中安装了该应用程序10台计算机都有连接通过网络中的单个数据库。当用户点击保存按钮然后我想将该记录保存在存储过程中的队列中然后逐个运行。

I am generating code using store procedure ..

Now my problem is... i have installed that application 10 computers in a network and all have connected through one single database in a network . when users are click on save button then i want to save that record on a queue in store procedure and then run one by one.

推荐答案





更好的是你可以在你的桌子中使用身份属性....

否则你可以使用One System参数表并存储ID值,当你有时需要该值然后获取它并使用下一个值更新。



SQL Server中的IDENTITY属性 [ ^ ]

IDENTITY(属性) [ ^ ]



问候,

Venkatesh Prabu Gopal
Hi,

Better you can use Identity Property in your table....
Else you can use One System parameter table and store the ID value and when ever you need the value then fetch it and update with next value.

IDENTITY Property in SQL Server[^]
IDENTITY (Property)[^]

Regards,
Venkatesh Prabu Gopal


这篇关于我想要在Sql Server中的存储过程中排队的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆