博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2010年6月21日

摘要: --查看表的属性select * from sysObjects where [Name] = 'section' --用法 if exists ( select * from sysObjects where [Name] = 'section' and xtype='U' ) Drop Table table1 go Create table1 ( )--获取所有用户表select Nam... 阅读全文

posted @ 2010-06-21 14:07 linFen 阅读(253) 评论(0) 推荐(0) 编辑

摘要: select name from sys.tables ----------- 查找当前数据库的所有数据库表名select c.object_id,c.name as cname,t.name as tname,is_computed as isComputed, (select value from sys.extended_properties as ex where ex.major_id ... 阅读全文

posted @ 2010-06-21 11:59 linFen 阅读(3473) 评论(0) 推荐(0) 编辑

摘要: sysaltfiles 主数据库 保存数据库的文件 syscharsets 主数据库字符集与排序顺序sysconfigures 主数据库 配置选项syscurconfigs 主数据库当前配置选项 sysdatabases 主数据库服务器中的数据库 syslanguages 主数据库语言 syslogins 主数据库 登陆帐号信息sysoledbusers 主数据库 链接服务器登陆信息 syspro... 阅读全文

posted @ 2010-06-21 11:58 linFen 阅读(232) 评论(0) 推荐(0) 编辑