惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
博客园 - 司徒正美
WordPress大学
WordPress大学
爱范儿
爱范儿
小众软件
小众软件
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
罗磊的独立博客
博客园_首页
V
V2EX
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
Tailwind CSS Blog
大猫的无限游戏
大猫的无限游戏
The Cloudflare Blog
MyScale Blog
MyScale Blog
IT之家
IT之家
H
Help Net Security
Blog — PlanetScale
Blog — PlanetScale
Microsoft Security Blog
Microsoft Security Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Recent Announcements
Recent Announcements
F
Fortinet All Blogs
The GitHub Blog
The GitHub Blog
Y
Y Combinator Blog
人人都是产品经理
人人都是产品经理

博客园 - 我爱写sql

不经保存,直接读取上传文件的内容 - 我爱写sql - 博客园 server2005系统表知多少 之sysusers server2005系统表知多少 之systypes server2005系统表知多少 之syspermissions server2005系统表知多少 之sysobjects server2005系统表知多少 之sysmembers server2005系统表知多少 之sysindexes server2005系统表知多少 之sysfiles server2005系统表知多少 之sysforeignkeys server2005系统表知多少 之sysfilegroups server2005系统表知多少 之sysconstraints server2005系统表知多少 之syscolumns server2005系统表知多少 之sysprocesses server2005系统表知多少 之sysremotelogins server2005系统表知多少 之sysoledbusers server2005系统表知多少 之syslogins server2005系统表知多少 之syslanguages server2005系统表知多少 之sysconfigures server2005系统表知多少 之syscharsets
server2005系统表知多少 之sysdatabases
我爱写sql · 2007-11-26 · via 博客园 - 我爱写sql

Microsoft? SQL Server? 上的每个数据库在表中占一行。最初安装 SQL Server 时, sysdatabases 包含 master 、 model 、 msdb 、 mssqlweb 和 tempdb 数据库的项。该表只存储在 master 数据库中。

列名 数据类型 描述
name  sysname  数据库的名称。
dbid  smallint  数据库 ID。
sid  varbinary(85)  数据库创建者的系统 ID。
mode  smallint  用于创建数据库时在内部锁定该数据库。
status  int  状态位,其中某些状态位可由用户使用 sp_dboption ( read only 、 dbo use only 、 single user 等)进行设置:
1 = autoclose ;使用 sp_dboption 设置。
4 = select into/bulkcopy ;使用 sp_dboption 设置。
8 = trunc. log on chkpt ;使用 sp_dboption 设置。
16 = torn page detection ,使用 sp_dboption 设置。
32 = loading 。
64 = pre recovery 。
128 = recovering 。
256 = not recovered 。
512 = offline ;使用 sp_dboption 设置。
1024 = read only ;使用 sp_dboption 设置。
2048 = dbo use only ;使用
sp_dboption 设置。
4096 = single user ;使用 sp_dboption 设置。
32768 = emergency mode 。
4194304 = autoshrink 。
1073741824 = cleanly shutdown 。

可以同时打开多个位。
 
status2  int  16384 = ANSI null default ;使用 sp_dboption 设置。
65536 = concat null yields null ,使用 sp_dboption 设置。
131072 = recursive triggers ,使用 sp_dboption 设置。
1048576 = default to local cursor ,使用 sp_dboption 设置。

8388608 = quoted identifier ,使用
sp_dboption 设置。
33554432 = cursor close on commit ,使用 sp_dboption 设置。
67108864 = ANSI nulls ,使用 sp_dboption 设置。
268435456 = ANSI warnings ,使用 sp_dboption 设置。
536870912 = full text enabled ,使用
sp_fulltext_database 设置。
crdate  datetime  创建日期。
reserved  datetime  留作以后使用。
category  int  包含用于复制的信息位图:
1 = 已发布。
2 = 已订阅。
4 = 合并已发布。
8 = 合并已订阅。
cmptlevel  tinyint  数据库的兼容级别。有关更多信息,请参见 sp_dbcmptlevel。 
filename  nvarchar(260)  数据库主文件的操作系统路径和名称。
version  smallint  创建数据库时使用的 SQL Server 代码内部版本号。仅供 SQL Server 工具在内部用于升级处理。