久久国产成人av_抖音国产毛片_a片网站免费观看_A片无码播放手机在线观看,色五月在线观看,亚洲精品m在线观看,女人自慰的免费网址,悠悠在线观看精品视频,一级日本片免费的,亚洲精品久,国产精品成人久久久久久久

分享

忘記了sa的密碼,,又刪除了builtin\administrators賬號,咋辦?

 昵稱597197 2011-10-21

1,、首先停止所有與SQLServer相關(guān)的服務(wù)

net stop "SQL Server Integration Services"
net stop "SQL Server FullText Search (MSSQLSERVER)"
net stop "SQL Server Agent (MSSQLSERVER)"
net stop "SQL Server Analysis Services (MSSQLSERVER)"
net stop "SQL Server Reporting Services (MSSQLSERVER)"
net stop "SQL Server Browser"
net stop "SQL Server (MSSQLSERVER)"


2、在命令行提示符下執(zhí)行
--SQL2005
cd C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn

sqlservr.exe -m
    如果是命名實例執(zhí)行sqlservr.exe -m -s<Instance Name>
3、啟動另一個命令行窗口,,執(zhí)行 sqlcmd -E
4、在此窗口下執(zhí)行下面的命令
create login [builtin\administrators] from windows
go
exec sp_addsrvrolemember [builtin\administrators], [sysadmin]
go
ALTER LOGIN sa WITH PASSWORD='***'

go
shutdown
go
5,、關(guān)閉2個命令行窗口,,啟動sqlserver,一切Ok

net start "SQL Server Integration Services"
net start "SQL Server FullText Search (MSSQLSERVER)"
net start "SQL Server Agent (MSSQLSERVER)"
net start "SQL Server Analysis Services (MSSQLSERVER)"
net start "SQL Server Reporting Services (MSSQLSERVER)"
net start "SQL Server Browser"
net start "SQL Server (MSSQLSERVER)"

    本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,,所有內(nèi)容均由用戶發(fā)布,,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式,、誘導(dǎo)購買等信息,,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,,請點擊一鍵舉報,。
    轉(zhuǎn)藏 分享 獻花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多