摘要: 数据库中使用正则表达式 代码--打开高级选项 sp_configure 'show advanced options',1 reconfigure --设置选项打开 sp_configure 'Ole Automation Procedures',1 reconfigure 阅读全文
posted @ 2011-01-27 11:25 查祝兆 阅读(5470) 评论(0) 推荐(1) 编辑
摘要: 查询有一个服务器几个数据库: declare @a varchar(8000) set @a='' select @a=@a+','+name from sysdatabases where dbid=6 order by name print substring(@a,2,len(@a)-1) select * from master.dbo.sysdatabases where dbid=6 order by name dbid用来选择非系统库。 阅读全文
posted @ 2011-01-27 11:19 查祝兆 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2011-01-27 10:22 查祝兆 阅读(177) 评论(0) 推荐(0) 编辑