标签:
创建登录帐号
CREATE LOGIN mytest
WITH PASSWORD = ‘qwe!‘;
USE MyTestTemp;
CREATE USER mytest FOR LOGIN mytest
WITH DEFAULT_SCHEMA = dbo;
exec sp_addrolemember ‘db_owner‘,‘mytest‘
修改myetest的登录密码
alter login mytest with password=‘123‘
获取当前数据库所占用的空间
sp_spaceused
遍历每个数据数
sp_msforeachdb
标签:
原文地址:http://www.cnblogs.com/symcious/p/4329896.html