摘要:
/* drop table a drop table b go */ create table A(ID int identity(1,1) primary key,Avalue varchar(10)) create table B(ID int identity(1,1) primary key,AID int,Bvalue varchar(10)) go /* drop vie... 阅读全文
摘要:
引用了链接:http://bbs.chinaunix.net/thread-2315221-1-1.html IF (OBJECT_ID('#tmpDBCC04') IS NOT NULL) DROP TABLE #tmpDBCC04 GO CREATE TABLE #tmpDBCC04 ( Cur 阅读全文
摘要:
Service Broker 可以创建异步的、数据驱动的消息应用程序,它允许一个数据库发送消息到其他数据库,而不需要等待响应,即使远程数据库不能立即处理这些消息,发送数据库也可以继续其他操作。通过使用T-SQL对象和命令,就可以完成管理Service Broker。 Service Broker 为 阅读全文
摘要:
--会话,连接,阻塞,线程 select * from sys.sysprocesses where spid = @@SPID --类似于sys.sysprocesses select * from sys.dm_exec_sessions s inner join sys.dm_exec_connections c on s.session_id = c.sessio... 阅读全文