DB2ConnectionStringBuilder.TrustedContextUserRegistryName Property
- Namespace:
IBM.Data.DB2
- Assembly:
IBM.Data.DB2
(inIBM.Data.DB2.dll
)
Syntax
DB2Connection conn = new DB2Connection();
conn.ConnectionString = "database=db;server=server1:446;UserID=userapp1;
Password=passapp1;TrustedContextSystemUserID=masteruser;
TrustedContextSystemPassword=masterpassword;TrustedContextUserRegistryName=Registry04;"
conn.Open();
// Do processing as userapp1, such as querying tables
conn.Close();
conn.ConnectionString = "database=db;
server=server1:446;
UserID=userapp2;
Password=passapp2;
TrustedContextSystemUserID=masteruser;
TrustedContextSystemPassword=masterpassword;
TrustedContextUserRegistryName=Registry05;"
conn.Open();
// Do processing as userapp2
conn.Close();
Property value
A user-defined string that names an identity mapping registry. The format of the registry name varies depending on the identity mapping service used.
Remarks
By providing this attribute you tell the server that the user name provided can be found in this registry. Use this attribute only while switching the user ID on a trusted connection. This connection string attribute is supported only on Db2® for z/OS® database server.