Home  >  Article  >  Database  >  sql2005数据库sa密码忘记了,该怎么办?

sql2005数据库sa密码忘记了,该怎么办?

WBOY
WBOYOriginal
2016-06-07 14:59:361619browse

很久没有在园子里面冒个泡泡了,一方面,工作太忙(借口);另外一方面,手里有些一些资源,正在着手转为商业用途。忙碌ing。 今天想到修改下数据库服务器的sa登陆密码,可突然忘记了,只好借助其他账户打开查询分析器修改sa的密码了,很简单: 执行: sp_pa

很久没有在园子里面冒个泡泡了,一方面,工作太忙(借口);另外一方面,手里有些一些资源,正在着手转为商业用途。忙碌ing。

今天想到修改下数据库服务器的sa登陆密码,可突然忘记了,只好借助其他账户打开查询分析器修改sa的密码了,很简单:

执行:
sp_password Null,'teracypwd,'sa'
把SA的密码设为“teracypwd”

执行成功后有“Command(s) completed successfully.”  OK!

 

建议那些管理数据库的朋友们将sa账户禁用,开着是灰常灰常的危险。

 

 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn