Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Moving the weekly_poll.mdb file
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Moving the weekly_poll.mdb file

 Post Reply Post Reply Page  12>
Author
D4D1 View Drop Down
Newbie
Newbie


Joined: 25 August 2003
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote D4D1 Quote  Post ReplyReply Direct Link To This Post Topic: Moving the weekly_poll.mdb file
    Posted: 25 August 2003 at 1:24pm

I am in need of help in Moving the weekly_poll.mdb file to another dir, outside of IIS. I have found that the weekly_poll.mdb file can be downloaded from the site if it is left in the same dir as the asp pages that go with it. after dl'ing the MDB you can read the admin name and password to the weeklypoll admin page, which is a little in-secure to me.

I have found the lines I suspect point to the location of the weekly_poll.mdb file, in the common.inc file, but have not been able to insert a corrected path: IE: Change this:

DBQ=" & Server.MapPath("weekly_poll.mdb")

to this:

DBQ=" ("c:\winnt\temp\weekly_poll.mdb")

or some other dir.

Any help would be appreciated, Thanks

 

Back to Top
D4D1 View Drop Down
Newbie
Newbie


Joined: 25 August 2003
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote D4D1 Quote  Post ReplyReply Direct Link To This Post Posted: 25 August 2003 at 1:28pm
Oh I forgot to mention, this free product works great! right out of the box, or compressed file that is. and the only issue I have had with it is the moving of the MDB file.
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 25 August 2003 at 1:30pm
Originally posted by D4D1 D4D1 wrote:

DBQ=" & Server.MapPath("weekly_poll.mdb")

to this:

DBQ=" ("c:\winnt\temp\weekly_poll.mdb")

or some other dir.

Any help would be appreciated, Thanks

 

this was almost right

DBQ=" ("c:\winnt\temp\weekly_poll.mdb")

but it is

DBQ=c:\winnt\temp\weekly_poll.mdb"

i think thats right

Back to Top
D4D1 View Drop Down
Newbie
Newbie


Joined: 25 August 2003
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote D4D1 Quote  Post ReplyReply Direct Link To This Post Posted: 25 August 2003 at 1:41pm

well, not really I just gave it a try and got this:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x9dc Thread 0xa60 DBC 0x20b0064 Jet'.

/wkp/common.inc, line 91

which on webwiz help states that it is most likely an error in the database location, IE:

This error can happen for a number of reasons the main reason being if the path to the database is incorrect.

You need to check that the path to the database is correct (You must use the physical path on the server to the database and not a virtual path).

The error is also quite common if the permissions on the server are incorrect. Check that IIS has sufficient permissions to access the registry and that the correct permissions, read and write, are set on the directory containing the database and the database itself, for the IUSR account.

I have checked the permissions and the iusr account has access rights to the dir and the file.

Thanks for the reply tho

Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 25 August 2003 at 1:47pm

does your strCon look something like this "Driver={Microsoft Access Driver (*.mdb)};DBQ=D:\domains\breathofair.awsnet.co.uk\user\private\forum.mdb"
%>

ignore the bold that is for example perposes

Back to Top
D4D1 View Drop Down
Newbie
Newbie


Joined: 25 August 2003
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote D4D1 Quote  Post ReplyReply Direct Link To This Post Posted: 25 August 2003 at 1:53pm

Nope. it looks like this:


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

but I changed it to:


strCon = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=c:\winnt\temp\weekly_poll.mdb"

of coarse I changed it back to the org. DBQ=" & Server.MapPath("weekly_poll.mdb") after  it didn't work.

 

Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 25 August 2003 at 2:00pm

sorry does it look like this

strCon = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & strDbPathAndName

and

strDbPathAndName = "D:\private\portal.mdb"

Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 25 August 2003 at 2:00pm
make sure the strDbPathAndName  is set before the strCon line
Back to Top
 Post Reply Post Reply Page  12>

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.