简体   繁体   English

SQL EXPRESS 2016的默认SQL身份验证详细信息

[英]Default SQL Authentication Details for SQL EXPRESS 2016

I'm attempting to remotely connect to my SQL Express 2016 server through MS SQL on my local machine however am having extreme difficulties with the authentication.. Well I assume it is an authentication issue as when I attempt connect to connect to it I receive the error message: 我正在尝试通过本地计算机上的MS SQL远程连接到我的SQL Express 2016服务器,但是在身份验证方面遇到了极大的困难。好吧,我认为这是一个身份验证问题,因为当我尝试连接到它时,我收到错误信息:

The remote computer refused the network connection. 远程计算机拒绝网络连接。

When connecting through the sqlcmd I am using Windows authentication and have no issue, however to connect to it remotely I need to use SQL authentication and have no memory of creating an account so am wondering if there's a default login and password? 通过sqlcmd连接时,我正在使用Windows身份验证,没有问题,但是要远程连接到它,我需要使用SQL身份验证,并且没有创建帐户的内存,因此我想知道是否存在默认的登录名和密码吗?

I believe this is the issue however it is quite likely i'm doing something stupid so any assistance would be appreciated! 我认为这是问题所在,但是我很可能在做一些愚蠢的事情,因此我们将不胜感激!

You can create an account that can be used to connect to that SQLExpress instance by using SQL Server Management Studio. 您可以使用SQL Server Management Studio创建一个可用于连接到该SQLExpress实例的帐户。 Expand the database you wish to create a login for in the Object Explorer. 在对象资源管理器中展开要为其创建登录名的数据库。 Under the Security folder, you can create a new login by right clicking the Logins folder. 在“ Security文件夹下,可以通过右键单击“ Logins文件夹来创建新的Logins

Also make sure that your machine has its firewall configured to allow remote connections, the server has remote connections enabled, and that you are allowing logins for Windows Auth and SQL Server Auth. 另外,请确保您的计算机已将防火墙配置为允许远程连接,服务器已启用远程连接,并且确保您允许登录Windows Auth和SQL Server Auth。

You can allow remote connections for a server by opening the SQL Server Configuration Manager . 您可以通过打开SQL Server Configuration Manager来允许服务器的远程连接。 Under the SQL Server Network Confiuration Node, Select Protocols for MYSERVERNAME . 在“ SQL Server Network Confiuration节点下,选择Protocols for MYSERVERNAME Ensure that TCP/IP is enabled. 确保已启用TCP/IP

Here's a guide on setting up the firewall: https://technet.microsoft.com/en-us/library/ms175043(v=sql.110).aspx 这是有关设置防火墙的指南: https : //technet.microsoft.com/zh-cn/library/ms175043(v=sql.110).aspx

You can enable SQL Server Authentication by right clicking your server name in the object explorer in SQL Server Management Studio and going to the Security tab. 您可以通过在SQL Server Management Studio中的对象资源管理器中右键单击服务器名称,然后转到“ Security选项卡来启用SQL Server身份验证。 look for the "Server Authentication" option. 查找“服务器身份验证”选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM