xSQL Schema Compare SDK for SQL Server version 12
SqlServer Constructor(String,String,String)


The name of the SQL Server instance.
The username to connect to SQL Server.
The username to connect to SQL Server.
Creates a new instance of the SqlServer class with the specified name, username and password.
Syntax
'Declaration
 
Public Function New( _
   ByVal serverName As System.String, _
   ByVal username As System.String, _
   ByVal password As System.String _
)
public SqlServer( 
   System.string serverName,
   System.string username,
   System.string password
)
public: SqlServer( 
   System.string* serverName,
   System.string* username,
   System.string* password
)

Parameters

serverName
The name of the SQL Server instance.
username
The username to connect to SQL Server.
password
The username to connect to SQL Server.
Exceptions
ExceptionDescription
System.ArgumentNullException

The serverName parameter is null

or

The username parameter is null

or

The password parameter is null

System.ArgumentException

The serverName parameter is an empty string

or

The username parameter is an empty string

or

The password parameter is an empty string

Remarks
This constructor connects to the SQL Server instance using the SQL Server Authentication.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

SqlServer Class
SqlServer Members
Overload List

 

 


©Copyright 2022 xSQL Software. All Rights Reserved.

Send Feedback