Victor.Stone
dot net 备忘录
posts - 21,  comments - 25,  trackbacks - 0
CREATE DATABASE [abc] ON
( FILENAME = N'E:\db\abc.mdf' ),
( FILENAME = N'E:\db\abc_log.ldf' )
 FOR ATTACH
GO
if not exists
(select name from master.sys.databases sd
where name = N'abc' and SUSER_SNAME(sd.owner_sid) = SUSER_SNAME() )
EXEC [abc].dbo.sp_changedbowner @loginame=N'sa', @map=false
GO
posted on 2010-12-16 08:37 Victor.Stone 阅读(210) 评论(0)  编辑 收藏 引用 所属分类: DB
只有注册用户登录后才能发表评论。

<2010年12月>
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

常用链接

留言簿(2)

随笔分类(17)

文章分类

搜索

  •  

积分与排名

  • 积分 - 23821
  • 排名 - 192

最新随笔

阅读排行榜