home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

asp error message

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2164
Discussions: 200,972, Posts: 2,379,771, Members: 246,336
Old March 6th, 2002, 05:24 PM   Digg it!   #1 (permalink)
Member
 
baby asp-er's Avatar
 
Join Date: Mar 2002
Location: AB, Canada
Posts: 150
asp error message

Hello all!

I'm brand new to asp and am trying to do a simple database entry script...

I haven't even gotten as far as writing my own script as sample scripts I'm trying won't even work! grrr....

anyway... my problem is this...
I'm using MS;s PWS and when I hit the submit button I get an error saying:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Microsoft Access Driver] Cannot update. Database or object is read-only.

/webpub/addrecordado2.asp, line 18
I've checked through the properties... and non of the files are read only... help?

Thanks in advance!
baby asp-er is offline   Reply With Quote
Old March 6th, 2002, 05:30 PM     #2 (permalink)
Member
 
baby asp-er's Avatar
 
Join Date: Mar 2002
Location: AB, Canada
Posts: 150
ooh... one more thing... is asp the best way to do this? I eventually want to be able to have people insert thier info and have people be able to search the database.
baby asp-er is offline   Reply With Quote
Old March 6th, 2002, 06:31 PM     #3 (permalink)
Not Really a Member
 
Join Date: Oct 2001
Posts: 25,398
ASP is an easy way to achieve this.

How are you connecting to the DB, is it through an ODBC System DSN, File DSN ... or just using ADO connection?

I've seen that error before, but can't remember what it was that was wrong... quite irritating though I know that.
__________________
Helicopters don't fly; they vibrate so much and make so much noise that the earth rejects them.
vass0922 is online now   Reply With Quote
Old March 6th, 2002, 06:40 PM     #4 (permalink)
Member
 
baby asp-er's Avatar
 
Join Date: Mar 2002
Location: AB, Canada
Posts: 150
there is another file with it that is conn.inc

I imagine it is using that... within that file is simply this:

<% strconn = "DRIVER=Microsoft Access Driver (*.mdb);DBQ=" & Server.MapPath("adoandsqladd_update.mdb") %>

I'm guessing that is just an ADO connection... but I honestly don't know even that much.

hehe, I'm trying not to sound to clueless... as it all seems relatively straight forward, and yet does not seem to want to work
baby asp-er is offline   Reply With Quote
Old March 6th, 2002, 07:34 PM     #5 (permalink)
Member
 
baby asp-er's Avatar
 
Join Date: Mar 2002
Location: AB, Canada
Posts: 150
okay...

so now what i've done is place the line from conn.inc
<% strconn = "DRIVER=Microsoft Access Driver (*.mdb);DBQ=" & Server.MapPath("adoandsqladd_update.mdb") %>


right within my asp response page and tried to do away with the .inc file... to see if it would help... it didn't...

it gives me this error
Variable is undefined: 'strconn'

I've tried muddling, but to no avail.

baby asp-er is offline   Reply With Quote
Old March 6th, 2002, 07:43 PM     #6 (permalink)
Not Really a Member
 
Join Date: Oct 2001
Posts: 25,398
You'll have to define strconn if I'm not mistaken.. I'm more familiar with vbscript/vb then asp (nearly the same thing, but its in the html)

try putting

<%

Dim strConn = "DRIVER=Microsoft Access Driver (*.mdb);DBQ=" & Server.MapPath("C:\pathto database\adoandsqladd_update.mdb")

%>
vass0922 is online now   Reply With Quote
Old March 6th, 2002, 07:54 PM     #7 (permalink)
Member
 
baby asp-er's Avatar
 
Join Date: Mar 2002
Location: AB, Canada
Posts: 150
I really appreciate the help...thanks again

I tried it and it gave me this...

Microsoft VBScript compilation error '800a0401'

Expected end of statement

/webpub/addrecordado2.asp, line 5

Dim strConn =
----------------^
baby asp-er is offline   Reply With Quote
Old March 6th, 2002, 08:24 PM     #8 (permalink)
Member
 
baby asp-er's Avatar
 
Join Date: Mar 2002
Location: AB, Canada
Posts: 150
woohoo!

Okay... I tried a different example... and had success... so... thanks... I'm giving up on this one!

sweet relieve from frustration!!!

Thanks again!
baby asp-er is offline   Reply With Quote
Old March 6th, 2002, 08:29 PM     #9 (permalink)
Not Really a Member
 
Join Date: Oct 2001
Posts: 25,398
<%

Dim strConn
strConn = "DRIVER=Microsoft Access Driver (*.mdb);DBQ=" & Server.MapPath("C:\pathto database\adoandsqladd_update.mdb")

%>
Would probably have worked thats what I meant to do in the first place but a typo
Forgot you can't do that in asp

Congrats, you're on you're way
vass0922 is online now   Reply With Quote
Old March 7th, 2002, 12:15 PM     #10 (permalink)
Member
 
baby asp-er's Avatar
 
Join Date: Mar 2002
Location: AB, Canada
Posts: 150
thanks vass,

tried it just to see... still no go... let's trash it shall we?
baby asp-er is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Charges against non-tippers dropped.. (6)
Is It Just Me? (3055)
The disrespect of Obama by Russian .. (48)
Delete an OS (16)
Nvidia GTX 260 problem (8)
Laptop with wireless problem. (12)
Wireless Televisions. (12)
CPU fan stops spinning randomly (11)
windows vista security holes (17)
Regular Build (11)
windows 7 problem (7)
Internet Lost (5)
Point and Shoot Camera Suggestions. (6)
Print spooler problem (16)
Recent Discussions
Delete an OS (16)
Multiple Restarts Required at Boot (4)
cell phone won't work (0)
Nvidia GTX 260 problem (8)
Is the PSU I received dead? (15)
Can't open Word (12)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (37)
Steam ID's, Gamertags etc... (4)
Games, Cables, PCI cards, and more fo.. (6)
Dept. of HS: NSA 'Helped' Develop Vis.. (17)
Linksys WMP54GS wireless card problem.. (5)
windows vista security holes (17)
Help getting around port 80 for camer.. (5)
Skillsoft Network+ Study Software Que.. (10)
Browsers wont load websites (3)
help me pls laptop just stopped worki.. (0)
Open With ..... Win7 (3)
Laptop with wireless problem. (12)
Internet Lost (5)
virus blocking exe. files (1)
Point and Shoot Camera Suggestions. (6)
CPU fan stops spinning randomly (11)
Modern Warfare 2: Who Bought It? (65)
Print spooler problem (16)
Kingston Bluetooth Dongle Driver (1)


All times are GMT -4. The time now is 10:43 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



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