Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Need help in moving ASP files from local to the Internet
Old 10-09-2006, 10:52 AM Need help in moving ASP files from local to the Internet
barbara's Avatar
Skilled Talker

Posts: 79
Trades: 0
Below is my local database connection code:

'connection to database
set conn=server.createobject("adodb.connection")
set rs=Server.CreateObject("ADODB.Recordset")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open "c:/inetpub/wwwroot/database/sample.mdb"

i need to upload my asp files and the database to the internet; what do i need to change so that the code will still work when it is upload?

thanks
barbara is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-10-2006, 06:56 AM Re: Need help in moving ASP files from local to the Internet
saadatshah's Avatar
Extreme Talker

Posts: 215
Name: Syed Saadat Ali
Location: Lahore, Pakistan
Trades: 0
have you purchased a webspace to upload your website? Or you have some free webspace? Tell in details where you want to upload this website.
__________________
- -- --- ---- ----- ------ ------- ---------------
If you have knowledge, let others light their candles in it.
saadatshah is offline
Reply With Quote
View Public Profile Visit saadatshah's homepage!
 
Old 10-10-2006, 11:20 AM Re: Need help in moving ASP files from local to the Internet
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
Code:
conn.Open "c:/inetpub/wwwroot/database/sample.mdb"
That line will have to be changed to match the path to the database on the web server. I usually use Request.ServerVariables ("SERVER_NAME") to detect the host (localhost vs. web sserver) and handle that line accordingly from there.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 10-11-2006, 08:53 PM Re: Need help in moving ASP files from local to the Internet
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
conn.open server.mappath("/database/sample.mdb")
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?

Last edited by chrishirst; 10-12-2006 at 03:25 AM.. Reason: Fixed the missing quote
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-11-2006, 09:28 PM Re: Need help in moving ASP files from local to the Internet
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
You forgot a quote, Hirst.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 10-12-2006, 03:26 AM Re: Need help in moving ASP files from local to the Internet
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Fixed.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Need help in moving ASP files from local to the Internet
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.22431 seconds with 12 queries