Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > SQL Server ASP
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 29th, 2008, 03:51 PM
Authorized User
Join Date: Sep 2008
Location: , , .
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.
Reply With Quote
  #2 (permalink)  
Old October 29th, 2008, 06:14 PM
Friend of Wrox
Join Date: Jun 2008
Location: Snohomish, WA, USA
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.
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 05:08 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.