日期:2014-05-17 浏览次数:20532 次
set @Sql=N' ALTER LOGIN ['+@LoginName +N'] WITH PASSWORD =' +N''''+@Password+N'''' exec(@Sql) set @Sql=N' CREATE USER ['+@UserName +N'] FOR LOGIN [' +@LoginName+N']' exec(@Sql)