devxlogo

Connecting to Databases from Web Servers

Connecting to Databases from Web Servers

Question:
In Visual InterDev I have successfully added a data connection. In the Data View I can see all my tables, fields, etc. My database resides on a SQL 7 server and my Web application is on the IIS 4 server. No matter what I do I get the following error:

“[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified.”

It seems as if everything I try fails. Can you please give an answer/hint to making the connection from the ASP?

Answer:
You have set up a proper DSN on your development server and therefore you can see the tables and fields successfully.

Your ASP page, however, is trying to find the same DSN on your Web server machine and is failing. Make sure you have the same DSN set up on the box containing the IIS 4 server also.

See also  Monetize TikTok For Your Business
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist