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 guestbook problems Access Database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-20-03, 11:31
Akumaownz Akumaownz is offline
Registered User
 
Join Date: Dec 2003
Posts: 10
Asp guestbook problems Access Database

I am having problems setting up a simple ASP guestbook. I am not sure what to put in the Server.MapPath so the database can be found

ie

openStr = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("dbguests.mdb")

do I replace the Server.MapPath with my site db url path like this

openStr = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & http://www.mysite.com/database/("dbguests.mdb")

As you might of guessed I am new to asp..


Please help
Reply With Quote
  #2 (permalink)  
Old 12-21-03, 04:22
MrWizard MrWizard is offline
Registered User
 
Join Date: Mar 2003
Location: Atlanta, GA
Posts: 191
Re: Asp guestbook problems Access Database

I'm not 100% sure what you're asking, but MapPath returns the PHYSICAL path on the server. So you won;t get an http:// url path, but instead something that looks like "d:\wwwroot\foldername\"

The physical path returned is the path to the folder you executed the MapPath command in.

Hope this helps,

Tim
__________________
Tim
Reply With Quote
  #3 (permalink)  
Old 12-21-03, 21:58
Bullschmidt Bullschmidt is offline
Guru
 
Join Date: Jun 2003
Location: USA
Posts: 1,032
Also the Jet driver is usually considered more stable than the Access driver for connection to an Access database.

Able Consulting - ADO Connection String Samples
http://www.able-consulting.com/ADO_Conn.htm
__________________
J. Paul Schmidt, Freelance Web and Database Developer
www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips
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