Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 05-09-2005, 12:30 AM   #1 (permalink)
In The Zone
 
Join Date: Jan 2004
Location: Panaji - Goa
Posts: 255
Default ACCESS DATABASE CONNECTION PROBLEM


I am trying to connet to my access database thro ASP. This code worked earlier on my comp, but after re-installing OS it dsnt. I can read records but cannot add records.
It gives foll error:
Code:
Error Type:
Microsoft JET Database Engine (0x80040E09)
Cannot update. Database or object is read-only.
My connection strings are as follows:

Code:
<%
strConnect = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source="& _
              Server.MapPath("/username/database/query.mdb")
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.open strConnect
Set objRS = Server.CreateObject("ADODB.RecordSet")
objRS.open "source",objConn,2,3
objRS.AddNew
objRS("name") = Request.Form("fname")
objRS("email") = Request.Form("femail")
objRS("query") = Request.Form("fquery")
objRS.Update
objRS.close : objConn.close
%>

I dont think anthing is wrong with the code as It worked earlier.
May be the required driver is missing. Please help!
__________________
Ish Karo... Ishq karna Tumhara Paidaishi Haq Hai........
Magar Kyon Na Is Bar Watan Ki Mitti Ko Mashuka bana le!!!

:) http://www.aseemn.org
Aseem Nasnodkar is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 05-09-2005, 07:21 AM   #2 (permalink)
Version 2.0
 
Deep's Avatar
 
Join Date: Jan 2004
Location: Mumbai
Posts: 977
Default

I do not know ASP but from the error you are getting, it looks like permission problem to some folder..

checkout this thread:

http://forums.aspfree.com/archive/t-27266

or this

Regards
Deep
__________________
- Deep Ganatra -
www.whoisdeep.com
www.twitter.com/DeepXP/
Deep is offline  
Old 05-09-2005, 11:52 AM   #3 (permalink)
Human Spambot
 
tuxfan's Avatar
 
Join Date: Feb 2004
Location: Mumbai
Posts: 2,653
Default

If the same code was working earlier, then there is not need to touch it simply because OS was re-installed.

Just check the attributes/properties of the file. It may be read only. You must have taken the backup on a CD and copied back from there on HD after OS installtion. So this must have made the files as read only.
tuxfan is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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


 
Latest Threads
- by clinton
- by Who
- by soumya
- by Sujeet
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 11:20 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2