If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > ASP and Access

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-18-04, 18:59
frontz frontz is offline
Registered User
 
Join Date: Mar 2004
Posts: 5
ASP and Access

Hello,

Here's my question.

Im running a quasi-webserver from my place. Its a school project. Its running fine and dandy. However I needed to upload it to a domain I own in order to have access to if for a presentation.

I uploaded all the pages and the databases. Is it legit to have the db physically on the domain? I can't seem to get it working.

Thanks.
Reply With Quote
  #2 (permalink)  
Old 03-18-04, 19:34
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
Legit? Definately, although you run the risk of it being available for people to grab depending on where in your site you have placed it...

Your problems probably come from the method you use to connect to the db or due to the fact that your host doesn't supprot asp....

What problems exactly are you having??
Reply With Quote
  #3 (permalink)  
Old 03-18-04, 20:28
frontz frontz is offline
Registered User
 
Join Date: Mar 2004
Posts: 5
Quote:
Originally posted by rokslide
Legit? Definately, although you run the risk of it being available for people to grab depending on where in your site you have placed it...

Your problems probably come from the method you use to connect to the db or due to the fact that your host doesn't supprot asp....

What problems exactly are you having??

Well i was using:

Code:
    'Open the Connection
    Set usrConn = Server.CreateObject("ADODB.Connection")
	' Attempt to open connection
	usrConn.Open "driver={Microsoft Access Driver (*.mdb)};" & _
      "dbq=c:\data\data.mdb"
to open my db. not sure really what to use now... i tried using the address that it was stored on the web but not dice.

thanks.
Reply With Quote
  #4 (permalink)  
Old 03-18-04, 20:36
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
when you say the address that was stored on the web what do you mean?

You should probably look at using mappath to locate the actual drive location for the database file. That should solve your problem if it's a location problem.
Reply With Quote
  #5 (permalink)  
Old 03-18-04, 20:39
frontz frontz is offline
Registered User
 
Join Date: Mar 2004
Posts: 5
Basically I have a web domain. And I want everything to reside on it. So I want the database and all the asp pages to be on the domain so it can be stand alone.... i'll check out mappath.
Reply With Quote
  #6 (permalink)  
Old 03-18-04, 20:42
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
try this....
Code:
    'Open the Connection
    Set usrConn = Server.CreateObject("ADODB.Connection")
	' Attempt to open connection
	usrConn.Open "driver={Microsoft Access Driver (*.mdb)};" & _
      "dbq=" & mappath("data.mdb")
assuming that your data.mdb file is in the same location as your asp page that is making the connection
Reply With Quote
  #7 (permalink)  
Old 03-23-04, 16:23
sjjs sjjs is offline
Registered User
 
Join Date: Feb 2004
Posts: 3
Without wanting to state the obvious, does your host support the use of a DB and, if so, have they given you a specific location to put it in?
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

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