Uploading Access Database and ASP Pages

This is a discussion on "Uploading Access Database and ASP Pages" within the Classic ASP section. This forum, and the thread "Uploading Access Database and ASP Pages are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 6th, 2004, 15:52
New Member
Join Date: Sep 2004
Location: United Kingdom
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Uploading Access Database and ASP Pages

Hi,

I'm hoping someone can help me edit my connections to asp pages to connect to my database so that it will work when it's uploaded. At the moment it all works fine on my local server but as I'm new to all of this, I've no idea how to link my uploaded database to my uploaded asp files using the dsn on my webhost (they don't provide scripting advice and I've tried a few changes but can't find anything that will work!) I'm also starting to froth at the mouth...!

I've jotted down a few of the codes that are currently contained in my webpages which I believe might be the ones that need editing to make it all work online:

My current connection is called remotebook.asp and contains the code
Code: Select all
Dim MM_remotebook_STRING
MM_remotebook_STRING = "dsn=booklist"
(My database is called booklist.mdb

My web asp pages contain the code:
Code: Select all
<!--#include file"../../Connections/remotebook.asp"
and also

Code: Select all
Set rsanatomy = Server.CreateObject("ADODB.Recordset")
rsanatomy.ActiveConnection=MM_remotebook_String
The current location of the file dsn on the web host server is d:\users\accoladebouk\database.dsn

and finally :razz: my uploaded database is located at

d:\users\accoladebouk\public_html\Database\booklis t.mdb

I've tried so many different combinations of code - the ones that have been suggested to me usually end up with an error message not liking the ../../Connections/remotebook.asp - but if I take out the ../../it says it cannot find "Connections/remotebook.asp. I've also noticed that this seems to upset the recordset behaviour and throws back an error message to do with the MM-String business!!

Please can somebody help me to sort out this publishing problem - I just tried and had to set up my connections all over again!! AGGGGGGHHHHHHHHHHHHHHHHHHHHHHHH!!!

Many thanks!

  #2 (permalink)  
Old Sep 6th, 2004, 16:09
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
Code: Select all
MM_remotebook_STRING = "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA Source=d:/users/accoladebouk/public_html/Database/booklist.mdb"
  #3 (permalink)  
Old Sep 6th, 2004, 16:12
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
the above connection string should work!
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
  #4 (permalink)  
Old Sep 6th, 2004, 19:19
New Member
Join Date: Sep 2004
Location: United Kingdom
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Cheers guys - once I'd applied the code and changed the <!--#include file code to a virtual one without the ../../ the code you suggested works! Brilliant - I think you're superheros!!
  #5 (permalink)  
Old Sep 6th, 2004, 20:45
benbacardi's Avatar
Highly Reputable Member
Join Date: Feb 2004
Location: United Kingdom
Age: 20
Posts: 611
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to benbacardi Send a message via Skype™ to benbacardi
after a while of being a member of this forum, you start to release that the guys here are superheros in their own little ways!
Closed Thread

Tags
uploading, access, database, asp, pages

Thread Tools

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
using access database ? saadi babar Classic ASP 13 Mar 19th, 2008 09:45
Access Database benjamjon Databases 1 Mar 8th, 2007 20:19
uploading multiple files path in the database franknu PHP Forum 4 Jan 23rd, 2007 15:37
Access database on the Web redkyna Databases 7 Aug 2nd, 2004 20:25
Uploading documents using asp and access therese Classic ASP 5 May 25th, 2004 05:02


All times are GMT. The time now is 05:00.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43