Re: SQL Server Application roles
- From: "Gaspar" <noreply@xxxxxx>
- Date: Mon, 6 Feb 2006 11:38:03 -0300
I've defined subclasses of TThread that are initializated with the main
datamodule's adoconnection. Each X seconds an ADOCommand is executed. This
execution is which causes the exception.
"Kevin Frevert" <kevin@xxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:43e755f2$1@xxxxxxxxxxxxxxxxxxxxxxxxx
Gaspar,
How are you executing your query 'in a separate thread'?
krf
"Gaspar" <noreply@xxxxxx> wrote in message
news:43e74803@xxxxxxxxxxxxxxxxxxxxxxxxx
I started using application roles but I have problems with database
queries that are executed in separated threads.
This is the scenario:
1) I connect to SQL Server 2005 with a user that only has CONNECT
permissions (i.e no permissions for select, update, etc.)
2) I execute sp_setapprole with an application role that has full access
to databases (just for testing).
3) Everything goes ok, I conect to table, open queries, etc., BUT if I
execute queries in a separated thread I get a "You haven't SELECT
permission on table XXX".
I read http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q229564
about OLEDB resouces pooling. I tried including the "OLE DB Services= -2"
string in ADOConnection.ConnectionString but It didn't seem to help.
Other ideas?
.
- Follow-Ups:
- Re: SQL Server Application roles
- From: Kevin Frevert
- Re: SQL Server Application roles
- References:
- SQL Server Application roles
- From: Gaspar
- Re: SQL Server Application roles
- From: Kevin Frevert
- SQL Server Application roles
- Prev by Date: Re: Please help with a serious issue
- Next by Date: Re: Please help with a serious issue
- Previous by thread: Re: SQL Server Application roles
- Next by thread: Re: SQL Server Application roles
- Index(es):
Relevant Pages
|