dbTalk Databases Forums  

Read Only error when updating a recordset

comp.database.ms-sqlserver comp.database.ms-sqlserver


Discuss Read Only error when updating a recordset in the comp.database.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
JdiazAZ (Offline)
Junior Member
 
Posts: 1
Join Date: May 2006

Default Read Only error when updating a recordset - 05-10-2006 , 02:59 PM






Hello all, I've got a kludge of a VB6 application that does:

1.) Read a table to get the next batch number . Result is read into a recordset called rsBatch(rsBatch is defined as 'recordset')

2.) Total up all records procesed

3.) Update the recordset from step 1 with the total.

The application failes with 'Object is Read Only' when I do 'rsBatch.Update'.

The original select used to populate the recordset was selecting from a table called 'Batch'. Logic changes required that I create a seperate table for a different set of batch numbers. (ABatch) the query was modified to pull from this new table. The DBA has verified that the table is not read only.

ANy ideas?

Reply With Quote
  #2  
Old   
scott.x.lu (Offline)
Junior Member
 
Posts: 5
Join Date: Jun 2006

Default 07-05-2006 , 02:23 AM






please check your connection setting (e.g. connectionstring) in your VB code

Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.