日期:2014-05-18 浏览次数:20623 次
exec sp_addlogin 'a','123','DbName' create user [a] for login [a] with default_schema=[dbo] exec sp_addrolemember 'db_owner','a'
select filename from master.dbo.sysdatabases where name='DbName'
USE [master] GO CREATE USER [xa] FOR LOGIN [a]