开始菜单 -->所有程序-->Visual Studio 文件夹 --> Visual Studio Tools -->VS2015开发人员命令提示
输入DOS命令: CD Common7/IDE 进入到该工具下的子文件夹中
输入:devenv.exe /setup /resetuserdata /resetsettings
postgre
1、select oid from pg_class where relname='可能被锁掉的表的表名'
,会显示一个oid
2、select pid from pg_locks where relation='刚刚查出来的oid'
--如果查询到了结果(pid),表示该表被锁 则需要释放锁定
select pg_cancel_backend(上面查到的pid)
sqlserver
1,select request_session_id spid,OBJECT_NAME(resource_associated_entity_id) tableName
from sys.dm_tran_locks where resource_type='OBJECT'
2, kill spid