[Microsoft] [odbc SQL Server Driver] [dbnetlib] SQL server does not exist or access is denied)

Source: Internet
Author: User
Tags sql server driver odbc sql server driver
[Microsoft] [odbc SQL Server Driver] [dbnetlib] SQL server does not exist or access is denied. Baidu After several hours of continuous search and analysis with sogou, I finally realized the cause.

Connect to the SQL database,
Ip_connstr = "driver = {SQL Server}; server = 127.0.0.1; database = database name; uid = sa; Pwd = password"

This is correct. Generally, no errors will occur.

"[Microsoft] [odbc SQL Server Driver] [dbnetlib] SQL server does not exist or access is denied"

The reason is that it can be searched from Baidu. Note the following:

In fact, it is very simple to put the server = 127.0.0.1 127.0.0.1
Change

Open your IIS and expand Internet Information Service
** (Local Computer)
** This is what you need. For example, if you are using webnet
Then you can change

Ip_connstr = "driver = {SQL Server}; server = webnet; database = database name; uid = sa; Pwd = password"

In this way, you can

In fact, I also found a solution in Baidu, which is just a lazy test,

As follows:
3. Use an IP address to connect to the Enterprise Manager:
Enterprise Manager --> right-click sqlserver group --> Create sqlserver registration --> next --> Write Remote Instance name (IP address, machine name) --> next --> select sqlserver login --> next --> write login name and password (SA, pass) --> next --> complete

References: http://www.it-school.cn/html/Windows-SDK-API/200611/121149.html
Generally, the above address can solve the problem.

To prevent this, the page cannot be opened later: Copy

1. Ping is guaranteed first.

2. No error will be reported when Telnet IP 1433 is written in DOS

3. Use an IP address to connect to the Enterprise Manager:
Enterprise Manager --> right-click sqlserver group --> Create sqlserver registration --> next --> Write Remote Instance name (IP address, machine name) --> next --> select sqlserver login --> next --> write login name and password (SA, pass) --> next --> complete

4. If not:
Sqlserver Server --> Start Menu --> sqlserver --> Server Network utility --> enable Winsock Proxy --> proxy address: (sqlserver Server IP) --> proxy port --> 1433 --> OK

5. If not:
Sqlserver client --> Start Menu --> sqlserver --> client network utility --> alias --> Add --> write alias such as "" --> "network library" select TCP/IP --> The server name is written to the remote IP address or Instance name --> OK

After sharing my experience, it took a long time not only three or four hours, but finally solved the problem ......

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.