验证SQL帐户密码是否有效

本文介绍了一种在SQLServer中使用不同用户身份运行SQLServer Management Studio的方法,通过使用runas命令来实现用户权限的切换,适用于需要定期更改密码的公共测试账号。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 在工作中,有些帐户的密码总是定期改变的,例如一些公用的测试帐号。

例如SQL Server上的一些帐户,前提是你已经安装了SQL Server,并且帐户是这个SQL Server的合法用户

 

1. run cmd

2. type command: runas /?

3. Click Enter key

4. go bottom and see the Exampless

5. Clict the Start button

6. Find the SQL Server Management Studio

7. Select it and right clickt

(refer to the pic in attachment)

8. copey Target

9. Go back the Command

10. Type command:runas /noprofile /user:域名或者机器名/用户名 "C:/Program Files/Micros
oft SQL Server/100/Tools/Binn/VSShell/Common7/IDE/Ssms.exe"

11. Click Enter key

12. Input the PWD

 

Result: if the pwd is right, the SQL server program will luanch.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值