拜求我电脑安装 Management Studio 2008,但安装的时间久了,SQL Server的用户名和密码都忘啦,该如何解决
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了拜求我电脑安装 Management Studio 2008,但安装的时间久了,SQL Server的用户名和密码都忘啦,该如何解决相关的知识,希望对你有一定的参考价值。
电脑是安装完之后由Win7家庭版的升级到旗舰版的,急急急急!!!!!谢谢
SQL Management Studio 2008
参考技术A
用管理员登录电脑,打开SQL Server Configuration Manager, 看properties, advanced, startup parameters, 在最后加上;-m, 然后重新启动SQL Server Service. 命令行运行sqlcmd连接SQL Server, 用sp_addsrvrolemember把当前windows账户加入sysadmin role, 退出sqlcmd, 把前面添加的;-m去掉,重新启动SQL Server Service, 打开SSMS, 用windows账号登录。
powershell Powershell - 安装Sql Server Management Studio
# Set file and folder path for SSMS installer .exe
$folderpath="c:\windows\temp"
$filepath="$folderpath\SSMS-Setup-ENU.exe"
#If SSMS not present, download
if (!(Test-Path $filepath)){
write-host "Downloading SQL Server 2016 SSMS..."
$URL = "https://download.microsoft.com/download/3/1/D/31D734E0-BFE8-4C33-A9DE-2392808ADEE6/SSMS-Setup-ENU.exe"
$clnt = New-Object System.Net.WebClient
$clnt.DownloadFile($url,$filepath)
Write-Host "SSMS installer download complete" -ForegroundColor Green
}
else {
write-host "Located the SQL SSMS Installer binaries, moving on to install..."
}
# start the SSMS installer
write-host "Beginning SSMS 2016 install..." -nonewline
$Parms = " /Install /Quiet /Norestart /Logs log.txt"
$Prms = $Parms.Split(" ")
& "$filepath" $Prms | Out-Null
Write-Host "SSMS installation complete" -ForegroundColor Green
以上是关于拜求我电脑安装 Management Studio 2008,但安装的时间久了,SQL Server的用户名和密码都忘啦,该如何解决的主要内容,如果未能解决你的问题,请参考以下文章
SQL Server Management Studio 2012在哪里?
怎么用SQL Server Management Studio管理数据库
sqlserver management studio是做啥的 跟sqlserver有啥区别啊
怎么用SQL Server Management Studio管理数据库
powershell Powershell - 安装Sql Server Management Studio
Sql Server 2008 Management studio安装教程