If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DB2 odbc connection read only

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-12-08, 06:32
toette toette is offline
Registered User
 
Join Date: Nov 2004
Posts: 15
DB2 odbc connection read only

Hello everybody,

how can I configure a odbc connection to read only access. On the windows xp machine the db2 adminstration is installed.

Is a keyword existing for the configuration?

Thanks toette
Reply With Quote
  #2 (permalink)  
Old 08-12-08, 08:10
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
no not possible
just have this user granted select authority on needed tables and this will give read authority
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 08-12-08, 08:11
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
This is not done at the connection level; grant the user in question only SELECT privileges and revoke INSERT, UPDATE, and DELETE privileges. This is assuming that the user does not have implicit authorities such as DBADM or SYSADM, which override individual object grants.
Reply With Quote
Reply

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On