UserId Property

The UserId property of the SqlConnectionString class gets the value of the User Id or Uid argument from the connection string.

Property Value

The User Id or Uid argument of the connection string. This value is null when making a trusted connection to a database server.

Remarks

The properties of the SqlConnectionString correspond to the name/value pairs that make up a .NET Framework Data Provider for SQL Server connection string.

The UserId and Password properties of the SqlConnectionString class are not used, since Microsoft Office SharePoint Portal Server 2003 supports only trusted connections to a SQL Server instance.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security