摘要: 方法一.使用@@VERSIONdeclare @k varchar(1000)sELECT @k=@@VERSION print @k结果:Microsoft SQL Server 2005 - 9.00.5000.00 (X64)Dec 10 2010 10:38:40Copyright (c) 1988-2005 Microsoft CorporationEnterprise Edition (64-bit) on Windows NT 5.2 (Build 3790: Service Pack 2)方法二.可以看到数据库的补丁版本SELECT SERVERPROPERTY('pr 阅读全文
posted @ 2011-10-11 10:12 金价 阅读(188) 评论(0) 推荐(0) 编辑
摘要: create table #flash (userid varchar(50))gobulk insert #flash from 'D:\g.txt'go 阅读全文
posted @ 2011-10-11 10:01 金价 阅读(424) 评论(0) 推荐(0) 编辑
摘要: 步骤:sp_dropserver @server = '原HOSTNAME' , @droplogins = 'droplogins'gosp_addserver @server= '现HOSTNAME' , @local = 'local',@duplicate_ok = 'duplicate_OK'重起MSSQL服务 select @@servername --查看更名是否成功 阅读全文
posted @ 2011-10-11 09:57 金价 阅读(195) 评论(0) 推荐(0) 编辑
摘要: sp_send_dbmail [ [ @profile_name = ] 'profile_name' ][ , [ @recipients = ] 'recipients [ ; n ]' ][ , [ @copy_recipients = ] 'copy_recipient [ ; n ]' ][ , [ @blind_copy_recipients = ] 'blind_copy_recipient [ ; n ]' ][ , [ @subject = ] 'subject' ] [ , [ @body = 阅读全文
posted @ 2011-10-11 09:53 金价 阅读(1054) 评论(0) 推荐(0) 编辑