app roles and ADO connections

From: Diederik (diederikvanpeer@hotmail.com)
Date: 11/08/02


From: "Diederik" <diederikvanpeer@hotmail.com>
Date: Fri, 8 Nov 2002 04:13:24 -0800


Hello all,
I'm having problems with the combination of SQL Server
application roles and ADO connections. Although I use a
single ADO connection in my VB application (on which the
sp_setapprole stored procedure is executed), I'm
getting 'EXECUTE permission denied on object...' messages.

On www.sqlteam.com I read the following comment by a user
named Jeffrey:

<quote>
You should note that the use of AppRoles with ADO is
problematic since the approles is strictly a SQL Server
concoction that ADO is apparently not aware of or
programmed to.

In some cases ADO will create additional connections
behind the scenes (especially when connections
are 'busied') and since it doesnt know about approles they
are not propogated automatically to the cloned
connections. As a result, the new conenctions cannot
access the database through the approle and would rely on
whatever other access permisions the user had.
<end quote>

Is there a workaround to prevent ADO from creating these
additional connections? I tried the "OLE DB Services = -2"
option, without success.

Thanks for any help,
Diederik



Relevant Pages

  • SQL Server backend poor performance
    ... I have converted an Access back-end to SQL Server back-end but am ... I have successfully copied all the data to SQL Server and linked the ... in the number of connections the whole system grinds to a halt. ... I am using DAO but wonder whether I should move over to ADO. ...
    (comp.databases.ms-access)
  • Re: Cross Transactions between ADO & ADO.Net
    ... There is one thing that might help here, if you're using SQL Server. ... SQL Server supports something called "bound sessions", where two connections ... > some code will be ADO & some code will be ADO.Net. ... > the DTC cordinator from COM+ to handle the transactions between ADO.Net & ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: VS 2003.net
    ... retry some connections and then try the create function again. ... myRS is an ado recordset connecting to an ODBC database and a single table. ... IsDBNull does not return the correct value causing runtime errors. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: ADO - Bad when it is time to Optimize
    ... in COM-ATL and the data access is thru ADO to SQL. ... You cannot set the max pool size. ... There is no way to disable the pooling ... You cannot know whether non-pooled connections are happening ...
    (microsoft.public.data.ado)
  • Re: MS Access 97 vs. XP/2003
    ... > be a web-based app). ... All the connections to the SQL DB are via ADO. ... recordset, containing modified data, may or may not come back eventually. ...
    (microsoft.public.access.modulesdaovba)