加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > MsSql教程 > 正文

ssms – 有没有办法为MS SQL Server Management Studio设置数据

发布时间:2020-12-12 16:57:08 所属栏目:MsSql教程 来源:网络整理
导读:我想要一个我的数据库服务器列表(我是开发人员),我目前有一个RDP文件列表,用于我连接的不同机器. SQL Server Management Studio中是否有类似的功能可以帮助我直接进入我需要去的地方而不必等待登录屏幕弹出并问我想要哪个服务器? 解决方法 是的您可以使用以
我想要一个我的数据库服务器列表(我是开发人员),我目前有一个RDP文件列表,用于我连接的不同机器. SQL Server Management Studio中是否有类似的功能可以帮助我直接进入我需要去的地方而不必等待登录屏幕弹出并问我想要哪个服务器?

解决方法

是的您可以使用以下命令:
ssms.exe -S SERVERNAME -d DATABASENAME -E

您可以使用run运行它,也可以将其放入.txt文件并将扩展名更改为.bat并运行它.

运行smss.exe /?可以找到更多信息:

Usage:
ssms.exe [-S server_name[instance_name]] [-d database] [-U user] [-P password] [-E] [file_name[,file_name]] [/?]

    [-S The name of the SQL Server instance to which to connect]
    [-d The name of the SQL Server database to which to connect]
    [-E]    Use Windows Authentication to login to SQL Server
    [-U The name of the SQL Server login with which to connect]
    [-P The password associated with the login]
    [file_name[,file_name]] names of files to load
    [-nosplash] Supress splash screen
    [/?]    Displays this usage information

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读