Hello - This is for all you CMS / Informix DB users out there...
I created a user account to run SQL queries against the CMS database for reporting. It was successful, but I was getting "No Select Permission" errors on the "haglog" table.
I fixed this by logging in as root and running the "dbaccess" command from the command line prompt. I ran the query "grant select on haglog to <useraccount>". Problem solved.
Next problem: Since it stands to reason there may be other tables where my account doesn't have select permissions, I'd like to grant the select permission to all tables for the user account, instead of a table-by-table basis.
So my quesion is: What SQL syntax can I use to grant select permission to all tables? I've tried the following:
grant select on database cms@cms_ol to <useraccount>
grant select on cms@cms_o1 to <useraccount>
grant select on database to <useraccount>
grant select on database cms to <useraccount>
grant select on all to <useraccount>
None has worked; I'm getting syntax errors. Poking through IBM's Informix DB query manual, the first one I tried should've worked but it didn't.
Any ideas?
I created a user account to run SQL queries against the CMS database for reporting. It was successful, but I was getting "No Select Permission" errors on the "haglog" table.
I fixed this by logging in as root and running the "dbaccess" command from the command line prompt. I ran the query "grant select on haglog to <useraccount>". Problem solved.
Next problem: Since it stands to reason there may be other tables where my account doesn't have select permissions, I'd like to grant the select permission to all tables for the user account, instead of a table-by-table basis.
So my quesion is: What SQL syntax can I use to grant select permission to all tables? I've tried the following:
grant select on database cms@cms_ol to <useraccount>
grant select on cms@cms_o1 to <useraccount>
grant select on database to <useraccount>
grant select on database cms to <useraccount>
grant select on all to <useraccount>
None has worked; I'm getting syntax errors. Poking through IBM's Informix DB query manual, the first one I tried should've worked but it didn't.
Any ideas?