MSSQL 2005删除所有表的语句[转]
摘要:godeclare @tbname varchar(250)declare #tb cursor for select name from sysobjects where objectproperty(id,'IsUserTable')=1open #tbfetch next from #tb into @tbnamewhile @@fetch_status=0begin exec('drop ...
阅读全文
posted @
2010-01-27 11:23
cean
阅读(535)
推荐(0)
MSSQL 2000更改表和存储过程的所有者
摘要:更改存储过程的所有者:declare tb cursor local forselect 'sp_changeobjectowner ''['+replace(user_name(uid),']',']]')+'].['+replace(name,']',']]')+']'',''dbo'''from sysobjectswhere xtype in('U','V','P','TR','FN','...
阅读全文
posted @
2010-01-26 14:56
cean
阅读(314)
推荐(0)
C#的String.Split方法[转]
摘要:String.Split 方法有6个重载函数:1) public string[] Split(params char[] separator)2) public string[] Split(char[] separator, int count)3) public string[] Split(char[] separator, StringSplitOptions options)4) pu...
阅读全文
posted @
2010-01-07 11:34
cean
阅读(1750)
推荐(0)