Description
Specifies the level of impersonation that the data server is allowed to use when impersonating its OLE DB data provider and PowerBuilder. This parameter applies only to network connections other than Remote Procedure Call (RPC) connections.
When to specify ImpersonationLevel
You must specify the ImpersonationLevel parameter before connecting to the database.
Applies to
OLE DB
Syntax
ImpersonationLevel='value'
Parameter |
Description |
---|---|
value |
Specifies the level of impersonation. Values are:
|
Default value
ImpersonationLevel='Not set'
Examples
To set a level of impersonation to anonymous:
-
Database profile
On the Security page in the Database Profile Setup dialog box, select Anonymous from the Impersonation Level drop-down list.
-
Application
Type the following in code:
SQLCA.DBParm="IMPERSONATIONLEVEL='DB_IMP_LEVEL_ANONYMOUS'"
See also