简体   繁体   中英

Connect to MS SQL Server

I am trying to connect to MS SQL Server hosted on a network. Windows authentication and SQL Server mode is enabled (both). I cannot connect

[DBNETLIB]SQL Server does not exist or access denied.
[DBNETLIB]ConnectionOpen (Connect()).

Can anybody suggest how to provide the server name when there exists a domain and please be explicit with slashes if any.

Assuming your client is on the same network and all of the DNS records are working correctly (try pinging the server to see if it's available).

  • You could try connecting using the IP address
  • If you are trying to connect to a named instance use server\\instance
  • Check that you are not being blocked by the Windows Firewall on either your machine or the server (at the very least port 1433 will need to be open for a default SQL instance)

make sure you enabled the following in Configuration Manager :

SQL Server Network Configuration - Protocols --- TCP/IP - Enabled

SQL Server Network Configuration (32bit and 64bit) - TCP/IP - Enabled - Name Pipes - Enabled

and make sure SQL Server Instance is logged on as a domain account for you to be able to execute network backup.

try opening sql thru SSMS if named instance use IP/name of instance else just the IP

and log in as "sa"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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