473,473 Members | 1,469 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

SQL Update Permission Problem

I haven't written ASP code to update an Access DB in years. Having a
permission problem. Been working on it for hours, time to get some help.
Running IIS 5 on an XP Pro system. ASP code to update an Access 2002 table
via ODBC. Receive the following error:
ADODB.Recordset (0x800A0CB3)
Current Recordset does not support updating. This may be a limitation of the
provider, or of the selected locktype.

I have set the directory permissions on the directory holding the .mdb to RW
scripts only. Have checked permissions everywhere I can think of.

The code:
set cn=server.CreateObject("ADODB.CONNECTION")
cn.ConnectionString="DSN=Pick3 DBs;UID=;PWD=;DATABASE=il3-digit;APP=ASP
script"
cn.Open
set rs=server.CreateObject("ADODB.RECORDSET")
rs.CursorType = adOpenKeyset
rs.LockType = adLockOptimistic
rs.Open "TWP_Polls", cn, , , adCmdTable
rs.Fields("twp_YVotes") = 100
rs.update
rs.close

Sure could use some help on this. Thanks!

Mike

--------------------------------------------------------------------------------
Nov 13 '05 #1
4 2596
mr_wizard wrote:
I haven't written ASP code to update an Access DB in years. Having a
permission problem. Been working on it for hours, time to get some help.
Running IIS 5 on an XP Pro system. ASP code to update an Access 2002 table
via ODBC. Receive the following error:
ADODB.Recordset (0x800A0CB3)
Current Recordset does not support updating. This may be a limitation of the
provider, or of the selected locktype.

I have set the directory permissions on the directory holding the .mdb to RW
scripts only. Have checked permissions everywhere I can think of.

The code:
set cn=server.CreateObject("ADODB.CONNECTION")
cn.ConnectionString="DSN=Pick3 DBs;UID=;PWD=;DATABASE=il3-digit;APP=ASP
script"
cn.Open
set rs=server.CreateObject("ADODB.RECORDSET")
rs.CursorType = adOpenKeyset
rs.LockType = adLockOptimistic
rs.Open "TWP_Polls", cn, , , adCmdTable
rs.Fields("twp_YVotes") = 100
rs.update
rs.close


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Is this a .mdb file where the data is stored? ("DSN=Pick3 DBs" makes me
think it is a PICKs db.)

First thought is that you don't have UPDATE permissions to the table
"TWP_Pools." That may be corrected by putting a UID & PWD values in the
parameters & giving that UID permission to UPDATE that table.

Second thought is you might try an adOpenDynamic CursorType.

R/W permission on the file containing the db can be a consideration, but
usually, if the file is an .mdb file, you will be notified, when the
file is opened, that it is Read Only. If the above fail, go ahead &
check the file's properties to see if Read Only is checked.

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQiEUV4echKqOuFEgEQKOVACgiMxiypnWSa7CEA4ROP6/ymLbQKQAoPIL
9JBhZUw7bP7GcCR1ZI19OCKx
=w7xf
-----END PGP SIGNATURE-----
Nov 13 '05 #2
I <might> have gotten around the permission error by moving the DB to
the IIS directory the ASP page resides in.

A couple more hours trying to get around the next error message:

"Current Recordset does not support updating. This may be a limitation
of the provider, or of the selected locktype."

Re CONNECTION STRING: "Pick3 DBs" is the ODBC name, "il3-digit" is the
DB (.mdb) name (shouldn't be needed w/ODBC), and "TWP_Polls" is the
table.

I've tried opening w/ Administrator UID & Password -- same error. All
files and directories are write-enabled.

Microsoft lists 4 possible causes for this error. The last cause isn't
applicable. I've tried the first three remedies with no success. I even
posted update ASP code from MS site -- same error. This is such a simple
action, but I'm at a loss...

Mike


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #3
Mike Reed wrote:
I <might> have gotten around the permission error by moving the DB to
the IIS directory the ASP page resides in.

A couple more hours trying to get around the next error message:

"Current Recordset does not support updating. This may be a limitation
of the provider, or of the selected locktype."

Re CONNECTION STRING: "Pick3 DBs" is the ODBC name, "il3-digit" is the
DB (.mdb) name (shouldn't be needed w/ODBC), and "TWP_Polls" is the
table.

I've tried opening w/ Administrator UID & Password -- same error. All
files and directories are write-enabled.

Microsoft lists 4 possible causes for this error. The last cause isn't
applicable. I've tried the first three remedies with no success. I even
posted update ASP code from MS site -- same error. This is such a simple
action, but I'm at a loss...


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Try opening the data file & see if you can change data directly in the
table. If that works, the connection string is probably the problem.
If you can't directly update then table permissions is the problem. If
you can't open the file, then corrupt file or file permissions.
Remember, when using the db as an internet data source the "user" is
some ASP/IIS user. I'm not very proficient in Internet based dbs so you
should look at documentation on which user name tries to get data & see
if you have that user's set up to update the table/have access to the
db.

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQiKiAYechKqOuFEgEQKvmgCfel1hvPl1NSUzm1dcmaSnip X6p14AnA8n
z9CsBKlMVfulMUq/VG/xKSAB
=nv7D
-----END PGP SIGNATURE-----
Nov 13 '05 #4
Br
MGFoster wrote:
Mike Reed wrote:
I <might> have gotten around the permission error by moving the DB to
the IIS directory the ASP page resides in.

A couple more hours trying to get around the next error message:

"Current Recordset does not support updating. This may be a
limitation of the provider, or of the selected locktype."

Re CONNECTION STRING: "Pick3 DBs" is the ODBC name, "il3-digit" is
the DB (.mdb) name (shouldn't be needed w/ODBC), and "TWP_Polls" is
the table.

I've tried opening w/ Administrator UID & Password -- same error. All
files and directories are write-enabled.

Microsoft lists 4 possible causes for this error. The last cause
isn't applicable. I've tried the first three remedies with no
success. I even posted update ASP code from MS site -- same error.
This is such a simple action, but I'm at a loss...


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Try opening the data file & see if you can change data directly in the
table. If that works, the connection string is probably the problem.
If you can't directly update then table permissions is the problem. If
you can't open the file, then corrupt file or file permissions.
Remember, when using the db as an internet data source the "user" is
some ASP/IIS user. I'm not very proficient in Internet based dbs so
you should look at documentation on which user name tries to get data
& see if you have that user's set up to update the table/have access
to the db.


Or perhaps the ODBC driver only supports read-only? (sorry, didn't pick
up what database you are using).

Br@dley
Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Russ | last post by:
Hello. My new dev machine is running XP Pro. In the past all equipment has only used Windows 2000. I have had a lot of problems getting my projects up and running on the new machine. The current...
0
by: mr_wizard | last post by:
I posted a message yesterday on my difficulty in updating an Access table. Yesterday the error response was permission related. I've gotten past that, but still cannot update the table. XP Pro...
4
by: Jozef | last post by:
Hello, I'm trying to check for and add a field to a table to a back end database through code. The problem I've been faced with is changing permissions, because I have to use administer...
3
by: Russ Green | last post by:
I am currently learning asp.net (vb) with Web Matrix. I am building an intranet page that will have an editable datagrid on it. I have got the datagrid to populate OK but I cannot get the Update...
2
by: simon | last post by:
I have this example: Dim myConn As New SqlConnection(myConnection) Dim myDataAdapter As New SqlDataAdapter() myDataAdapter.SelectCommand = New SqlCommand(mySelectQuery, myConn) Dim cb As...
15
by: Darren | last post by:
Help, i want to run an update query from a form.. and was wonderin.. Can the update query run if i want to update a value manually inputted from a form (e.g. !!) to a table...
3
by: mosscliffe | last post by:
I created a new table in Visual Web Developer for SQL Server Express 2005. I created a 'gridview' by dragging the table onto an empty web form in Visual Developer Express. Clicked on the smart...
1
by: Muskito | last post by:
HELP!!! Hello All, I'm using VB.net 2003 and trying to update data in Excel worksheet. The program selects data from the excel, updates something in the MSSQL DB and then tries to update...
1
by: rcoco | last post by:
I'm facing trouble to update the data in the SQLServer 2000. When ever I try to update it I get a message that goes like this: SELECT permission denied on object 'staff', database 'dbname',...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.