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

Home Posts Topics Members FAQ

Moving cursor in Command Editor results screen results in update of table

In the DB2 Admin Client (8.2.4), when the results of a query are displayed
in the grid that looks like a spreadsheet (using Command Editor or double
click on table name in Control Center). The data in this grid is updatable.

When a cursor is first placed on one of the columns, no update takes place.
When the cursor is then merely moved to another row (any column) the
previous row is updated, even if it was not changed. If the user does not
have authority to update the table, then a sqlcode -551 is displayed
indicating that they are authorized to update the table.

Is there any way let users query the data using these tools, and let them
move the cursor around without updating the data? This seems like a very
questionable design. There should be some way to let users just query the
data with tool without attempting updates just because they place the cursor
on a row in the grid.
Apr 27 '06 #1
3 2086
Ian
Mark A wrote:
In the DB2 Admin Client (8.2.4), when the results of a query are displayed
in the grid that looks like a spreadsheet (using Command Editor or double
click on table name in Control Center). The data in this grid is updatable.

When a cursor is first placed on one of the columns, no update takes place.
When the cursor is then merely moved to another row (any column) the
previous row is updated, even if it was not changed. If the user does not
have authority to update the table, then a sqlcode -551 is displayed
indicating that they are authorized to update the table.

Is there any way let users query the data using these tools, and let them
move the cursor around without updating the data? This seems like a very
questionable design. There should be some way to let users just query the
data with tool without attempting updates just because they place the cursor
on a row in the grid.


To add to this, DB2 holds row locks -- so when the unsuspecting user
clicks on a row, they hold a lock on the row. Or, if a select query
returns more than the "page limit" of the output (i.e. Command Editor
defaults to fetching 100 rows at a time, I think), DB2 will hold a
row lock for the current position of the cursor.

My experience has been that these situations always happens just before
the user leaves for lunch or some other extended absence, which wreaks
havoc for other users.

Apr 30 '06 #2
Mark A,

One option is to create a schema which only has read privilege on the
tables and ask users to use this schema when they are querying the DB.

FYI: TXNISOLATION = 1 (i.e. Uncommitted Read) in db2cli.ini didn't work

Regards,

Mehmet

May 1 '06 #3
read privilege => select privilege

May 1 '06 #4

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

Similar topics

4
by: sci | last post by:
Could someone help me by answering the questions below? What's a cursor? What's difference between Query and View? Is a RecordSet just part of a table? Can it be part of a query of view? If...
71
by: tomy_baseo | last post by:
I'm new to HTML and want to learn the basics by learning to code by hand (with the assistance of an HTML editor to eliminate repetitive tasks). Can anyone recommend a good, basic HTML editor that's...
1
by: teddysnips | last post by:
SQL Server 2000 I have a stored procedure that uses an extended SPROC to send an email notification to my customers when a document is distributed. However, the SPROC has an unexpected side...
4
by: erkki | last post by:
Hi, I have to move iSeries library to new DB2 database. Is there any easier way to do this moving operation than exporting all tables in iSeries into text files and then import them into DB2...
0
by: JV | last post by:
In the SQL Command editor (click on a data adapter, in property window find the SELECT command property, drill down to the CommandText sub-property and click the button to edit) if you use a UNION...
3
by: mghale | last post by:
I'm trying to create a cursor and complete some processing against DB2. I'm using DB2 V8.2 on AIX. I don't wont to create a stored procedure, I just want to use a regular query editor such as...
0
by: SuzK | last post by:
I am trying to calculate in VBA in Access 2002 a moving average and update a table with the calculations. Fields in my WeeklyData table are Week Ending (date) ItemNbr (double) Sales Dollars...
1
by: taishin | last post by:
so far i got this... but the shapes that i created i need to be able to click and dragg and move around with the mouse..help!!!! and also some where here i need to draw and equal sided triangle ...
36
by: CK | last post by:
How do I write a set based query? I have a groupSets table with fields setId, idField, datasource, nameField, prefix, active Data: 1,someIDfield, someTable, someField, pre1, 1 2,someotherIDfield,...
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
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.