Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - connecting to database in xp
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

connecting to database in xp

 Post Reply Post Reply
Author
ranni View Drop Down
Newbie
Newbie


Joined: 15 March 2003
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote ranni Quote  Post ReplyReply Direct Link To This Post Topic: connecting to database in xp
    Posted: 15 March 2003 at 1:03pm

i'm trying to connect and view the information in a database.  i have used the guestbook example, it works fine in the format it is   but when i convert the database to the latest version using access in office xp it stops working.

is their any way of editing the code to make it work.

heres the tutorial im trying to use

http://www.webwiz.net/asp/tutorials/connecting_to_a_database_pt2.asp

any help much apreciated

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: 15 March 2003 at 4:50pm

Try this one.

adoCon.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("guestbook.mdb")

Back to Top
ranni View Drop Down
Newbie
Newbie


Joined: 15 March 2003
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote ranni Quote  Post ReplyReply Direct Link To This Post Posted: 18 March 2003 at 1:49am
cheers got it sorted
Back to Top
Freestyler.SP View Drop Down
Newbie
Newbie
Avatar

Joined: 02 April 2003
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Freestyler.SP Quote  Post ReplyReply Direct Link To This Post Posted: 02 April 2003 at 1:13pm

I'm newbei in ASP. And i guess i've got similar error.

I use Access 2002 db.

When i connected through DSN everything was okey. But now i decided connect without DSN and got strange error:

Error Type:
Microsoft JET Database Engine (0x80040E14)
Syntax error in FROM clause.

Query was:

mySQL="SELECT UserName, UserId FROM User WHERE UserName='" & userName & "' AND Password='" & password & "'"

Examples with original access 97 dbs work.

Converting from format 2002 to 97 doesn't help.

Thanx for attention.

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

Joined: 10 April 2002
Location: Australia
Status: Offline
Points: 846
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bunce Quote  Post ReplyReply Direct Link To This Post Posted: 02 April 2003 at 4:35pm

Password might be a reserved word.

Try enclosing it in [] : "... AND [Password]=..." or better still, rename the field.

Cheers,
Andrew

There have been many, many posts made throughout the world...
This was one of them.
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.