SQL Server Connection Database problem

Source: Internet
Author: User
server| Connection Database | The problem has been found in the last few days that when I took my laptop from the development room to my dorm, my ASP program was unable to connect to the SQL Server database and, after analysis, found that there was no network cable. But since I developed this project is classified, the program is not the computer on the Internet, it is not possible to use SQL Server as a database, after the attempt to find as long as the connection address to the computer name on the line!
namely the
<%
Set conn = Server.CreateObject ("ADODB. Connection ")
dsntemp= "Driver={sql Server}; Server=localhost; Uid=sa; pwd=;D Atabase=manage "
Conn.Open Dsntemp
%>
To
<%
Set conn = Server.CreateObject ("ADODB. Connection ")
dsntemp= "Driver={sql Server}; server= your computer name; Uid=sa; pwd=;D Atabase=manage "
Conn.Open Dsntemp
%>



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.