Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - connection
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

connection

 Post Reply Post Reply
Author
ainsworth14 View Drop Down
Groupie
Groupie


Joined: 05 August 2003
Location: United Kingdom
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote ainsworth14 Quote  Post ReplyReply Direct Link To This Post Topic: connection
    Posted: 11 September 2003 at 3:39pm

I know many people ask this but I am having trouble connecting to my remote access db on my hosting server.

I have a site made on my local maching with connections to a local DB, I now want to upload the site to my web host, but am having troubles changing the connection string and making it work.

My site is in: C:\Inetpub\wwwroot\sitename

and my db is in C:\Inetpub\database

my curent connection string is
"Driver={Microsoft Access Driver (*.mdb)};DBQ=C:\Inetpub\database\Record_Webtest.mdb"

all is working great on my local testing server. But how do i know how to connect to the remote location and what should the path look like?? I don tknow much about all this, I have been learning by trial and error, but at this last stage have become slightly stuck.

I have tried many connection strings off the web etc but none have worked, I am  using Dreamweaver MX if that helps.

I know it should be a simple thing to do, but I'm having trouble.

thanks in advance, if i need to give any more info please let me know

mark

Back to Top
b_bonnett View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Location: New Zealand
Status: Offline
Points: 275
Post Options Post Options   Thanks (0) Thanks(0)   Quote b_bonnett Quote  Post ReplyReply Direct Link To This Post Posted: 11 September 2003 at 4:41pm

Ask your webhost for the physical path to the database folder.

Blair

Webmaster, The Plane Gallery
Greetings From Christchurch
Back to Top
ainsworth14 View Drop Down
Groupie
Groupie


Joined: 05 August 2003
Location: United Kingdom
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote ainsworth14 Quote  Post ReplyReply Direct Link To This Post Posted: 17 September 2003 at 3:23pm

OK fantastic mate,

I now have my path form my webhost.

I have subsituted that path and tried different variations to make it work but I keep getting ODBC errors in dreamweaver when I test the connection. Can anyone please suggest a connection string I can use, as this is my last hurdle on creating my site and is really winding me up!

Also, when I am previewing and amending site design etc, do I have to always connect to my remote DB?

Sorry if these questions sound stupid, but I have been riding on trial and error throught the whole site design process, and have done pretty well up to now........

many thanks
mark

Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 17 September 2003 at 3:49pm
Just put in the path your host gave you the same way as on your local server. Don't worry about the test connection in DW. Just upload it...
Back to Top
3BEPb View Drop Down
Groupie
Groupie


Joined: 07 August 2003
Location: United States
Status: Offline
Points: 81
Post Options Post Options   Thanks (0) Thanks(0)   Quote 3BEPb Quote  Post ReplyReply Direct Link To This Post Posted: 17 September 2003 at 10:43pm

Originally posted by ainsworth14 ainsworth14 wrote:

Also, when I am previewing and amending site design etc, do I have to always connect to my remote DB?
This will work for remote SQL server, but not for MS Access. And abouth physical path to your DB folder, I always use the following:

DBQ=" & Server.MapPath("data/database.mdb") & ";

IMHO this is most professional solution.

Back to Top
ainsworth14 View Drop Down
Groupie
Groupie


Joined: 05 August 2003
Location: United Kingdom
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote ainsworth14 Quote  Post ReplyReply Direct Link To This Post Posted: 18 September 2003 at 3:27pm

you guys are great finally working on live site!! cheers ;-)

3bepb cheers for the string, works great

thanks again
mark

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.