Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server ASP
SQL Server ASP Discussions about ASP programming with Microsoft's SQL Server. For more ASP forums, see the ASP forum category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server ASP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old October 29th, 2008, 03:51 PM
Authorized User
Join Date: Sep 2008
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default Access sql server from on different host


I am puzzled as to why I am having trouble accessing data from sql server.

I have been given a website from a friend who would like the site hosted on the internet. I currently have a MS hosting package with 1and1.

The site is programmed in asp and gets the data from a sql server database at an ip address. here is the connection string...

set objConn = Server.CreateObject("ADODB.Connection")
    objConn.open "Provider=SQLOLEDB.1;Data Source=,1334;Initial Catalog=sawleCMS;User ID=sa;Password=xxxxx"

The page runs fine from my localhost server on vista and gets the data from the external sql database no problem. But now I have uploaded the site to 1and1, the asp pages run no problem but it times out all the time on the pages that try and get the data from the database.

I do not have the sql database nor does my friend know how to get the database back from where it currently is at that ip address. I am stuck as to why it works on my localhost but not the hosting provider?

Could anyone please help?

My localhost server is run on vista 64bit with IIS 7.

Many thanks for anyone who may help.
Old October 29th, 2008, 06:14 PM
Friend of Wrox
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts

> it times out all the time on the pages that try and get the data from the database.

Does "all the time" mean "on each and every attempt"? Or does it mean "on many or most attempts"??

If the former, then perhaps the server is rejecting your site's IP address (yes, SQL Server can be set to do that).

If the latter, are you hitting it thousands of times per minute from the site versus a couple of times per minute from your local machine?

If none of the above, give more details.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Access to sql server from Asp 3.0 jupiter3437 Classic ASP Databases 0 November 15th, 2005 01:07 AM
Send an object from a server-socket to the host? magsto General .NET 0 August 16th, 2005 06:42 AM
Server.xml: how to set up a virtual host rvw Apache Tomcat 2 August 10th, 2004 11:34 PM
SQL in Access and in SQL Server mikko SQL Server 2000 1 July 29th, 2003 06:17 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.