|
|
 |
| 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.
|
 |

October 29th, 2008, 04:51 PM
|
|
Authorized User
|
|
Join Date: Sep 2008
Location: , , .
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|

October 29th, 2008, 07:14 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,323
Thanks: 3
Thanked 70 Times in 69 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.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |