是否死锁

  1. select
  2. request_session_id spid,
  3. OBJECT_NAME(resource_associated_entity_id) tableName
  4. from
  5. sys.dm_tran_locks
  6. where
  7. resource_type='OBJECT'
  8. --kill 98
  9. select spId,* from master..SysProcesses where db_Name(dbID) = 'dddd' and spId <> @@SpId and dbID <> 0
  10. kill 201

SQL Prompt 破解后防止过期

host文件添加一下

  1. 127.0.0.1 licensing.red-gate.com
  2. 127.0.0.1 www.red-gate.com
  3. 127.0.0.1 red-gate.com
  4. 127.0.0.1 productusage.red-gate.com
  5. 127.0.0.1 productlogin.red-gate.com