Role activation
From: Darko Grujic (darkogrujic@hotmail.com)
Date: 03/27/03
- Next message: Andrew J. Kelly: "Re: Tapi Application"
- Previous message: Stephane: "Slammer Worm"
- Next in thread: Mary Chipman: "Re: Role activation"
- Reply: Mary Chipman: "Re: Role activation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Darko Grujic" <darkogrujic@hotmail.com> Date: Thu, 27 Mar 2003 03:59:53 -0800
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.
- Next message: Andrew J. Kelly: "Re: Tapi Application"
- Previous message: Stephane: "Slammer Worm"
- Next in thread: Mary Chipman: "Re: Role activation"
- Reply: Mary Chipman: "Re: Role activation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|