Compartilhar via


SqlConnectionInfo Constructor (String, String, String)

Initializes a new instance of the SqlConnectionInfo class.

Namespace: Microsoft.SqlServer.Management.Common
Assembly: Microsoft.SqlServer.ConnectionInfo (in microsoft.sqlserver.connectioninfo.dll)

Syntax

'Declaration
Public Sub New ( _
    serverName As String, _
    userName As String, _
    password As String _
)
public SqlConnectionInfo (
    string serverName,
    string userName,
    string password
)
public:
SqlConnectionInfo (
    String^ serverName, 
    String^ userName, 
    String^ password
)
public SqlConnectionInfo (
    String serverName, 
    String userName, 
    String password
)
public function SqlConnectionInfo (
    serverName : String, 
    userName : String, 
    password : String
)

Parameters

  • serverName
    A String object value that specifies the instance of SQL Server.
  • userName
    A String object value that specifies the user who is connected to the instance of SQL Server.
  • password
    A String object value that specifies the password supplied by the user to connect to the instance of SQL Server.

Remarks

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

SqlConnectionInfo Class
SqlConnectionInfo Members
Microsoft.SqlServer.Management.Common Namespace