ImpersonationLevel database parameter
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.
Controls
-
OLE DB
Syntax
|
1 |
ImpersonationLevel='<span>value</span>' |
|
Parameter |
Description |
|---|---|
|
value |
Specifies the level of impersonation.
|
Default
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:
1SQLCA.DbParameter="IMPERSONATIONLEVEL='DB_IMP_LEVEL_ANONYMOUS'"