SQLServer数据库札记(一)

SQLServer数据库笔记(一)准备几个常用的管理类语句:2?sp_who:返回与SQLServer服务器连接的用户进程信息;2?

SQLServer数据库笔记(一)

准备

几个常用的管理类语句:

2?sp_who:返回与SQLServer服务器连接的用户进程信息;

2?sp_lock:返回SQLServer中所有锁的信息;

2?dbcc useroptions:返回当前连接的SET选项;

2?set transaction isolation level readcommitted:更改当前连接的SELECT语句的默认事务锁定行为;

2?set implicit_transactions {on|off}:在自动提交模式和隐性事务模式间切换;