siso

明天会更好!

随笔分类 -  SQL Server

SQL Server
SQL Server数据恢复
摘要:11:47:00 insertcreate table Student(id int ,name nvarchar(50))insert into Student(id,Name)select 1,'a'union allselect 2,'b'union allselect 3,'c'union ... 阅读全文

posted @ 2014-11-12 12:34 siso 阅读(119) 评论(0) 推荐(0)

SQL Server存储过程中防止线程重入处理方式
摘要:对于线程重入,在C#中有lock关键字锁住一个SyncObject,而SQL Server也可用一个表来模拟实现。 先创建一个同步表,相当于C#中的SyncObject,并插入一条记录(初始值为1) create table SyncTable(id bit)goinsert into SyncTable (id) values (1)然后假设有个存储过程,有一系列操作,需要防止多线程同时访问到,... 阅读全文

posted @ 2014-04-26 20:33 siso 阅读(1056) 评论(0) 推荐(0)

导航