Re: Role activation

From: Mary Chipman (mchip@nomail.please)
Date: 03/27/03


From: Mary Chipman <mchip@nomail.please>
Date: Thu, 27 Mar 2003 14:24:35 -0500


Are you sure? How are you verifying that it didn't get activated on
that connection? You can select the USER or USER_NAME to verify--it
should change to the role name. Bear in mind that approles are
connection-specific, and unless you turn off connection pooling in
your connection string, it might not be active. see this link for more
info:
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q229564

-- Mary
MCW Technologies
http://www.mcwtech.com

On Thu, 27 Mar 2003 03:59:53 -0800, "Darko Grujic"
<darkogrujic@hotmail.com> wrote:

>I can activate an application role using Query Analyzer
>with EXEC sp_setapprole "RoleName", "RolePassword"
>but not using VBA from within Excel or from within another
>application:
>
> Dim oConnection As ADODB.Connection
>' Create the connection object and connect.
>Set oConnection = CreateObject("ADODB.Connection")
>oConnection.Provider = "sqloledb"
>oConnection.Open "Server=SERVERNAME;Database=pubs;Trusted_C
>onnection=yes"
>
>' Activate the application role. There is no error
>handling for this sample.
>oConnection.Execute "EXEC
>sp_setapprole 'AccAppRole', 'ABC'"
>
>This runs with no errors, all libraries exist, but the
>role does not get activated.



Relevant Pages

  • Re: Problems with Media Center and Xbox 360
    ... are you able to connect to Xbox Live from your Xbox ... connection because the xbox wouldnt reconnect ... 6:56:13 AM: Verifying user is Administrator. ... 6:56:22 AM: Saving Media Discovery folders. ...
    (microsoft.public.windows.mediacenter)
  • Re: Xbox media extender installation problem
    ... > I believe that I am having a very similar issue with my Media Center ... > 2:21:40 PM: Verifying Privacy Policy is present. ... > 2:22:26 PM: Waiting for security codes exchange status. ... I recently added a DSL connection to my network and have not ...
    (microsoft.public.windows.mediacenter)
  • Re: ISDN problem
    ... Now this connection relys on verifying that I am using the CID that I ... The other problemI've got is that when in root I have two shell ... type boxes with Root Permissions on them across the top. ...
    (alt.os.linux.suse)
  • Re: ISDN problem
    ... Now this connection relys on verifying that I am using the CID that I ... The other problemI've got is that when in root I have two shell ... type boxes with Root Permissions on them across the top. ...
    (alt.os.linux.suse)
  • Re: Sqlcommand object gives command timeout
    ... In addition to verifying that all of the connections are closed you may ... There are two timeouts, Connectino Timeouts ... I think the problem is with the Connection and based ... verifying that the connections are closed and changing to pool ...
    (microsoft.public.dotnet.framework.adonet)