p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > SQL Server > SQL Server ASP
I forgot my password Register Now
Register | 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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 29th, 2008, 04:51 PM
Authorized User
Points: 49, Level: 1
Points: 49, Level: 1 Points: 49, Level: 1 Points: 49, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2008
Location: , , .
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Access sql server from on different host

Hi

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.ConnectionTimeOut=60
    objConn.open "Provider=SQLOLEDB.1;Data Source=80.244.184.92,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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old October 29th, 2008, 07:14 PM
Friend of Wrox
Points: 4,805, Level: 29
Points: 4,805, Level: 29 Points: 4,805, Level: 29 Points: 4,805, Level: 29
Activity: 50%
Activity: 50% Activity: 50% Activity: 50%
 
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,323
Thanks: 3
Thanked 70 Times in 69 Posts
Default

> 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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

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 07:42 AM
Server.xml: how to set up a virtual host rvw Apache Tomcat 2 August 11th, 2004 12:34 AM
Dingojunction ASP Web Host Server dtaya ASP Forms 1 October 28th, 2003 03:13 AM
SQL in Access and in SQL Server mikko SQL Server 2000 1 July 29th, 2003 07:17 AM



All times are GMT -4. The time now is 11:36 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc