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


The name of the SQL Server instance.
The connection string that contains SQL Server credentials and other settings.
Initializes a new instance of SqlServer class from the specified name and connection string.
Syntax
'Declaration
 
Public Function New( _
   ByVal serverName As System.String, _
   ByVal connectionString As System.String _
)
public SqlServer( 
   System.string serverName,
   System.string connectionString
)
public: SqlServer( 
   System.string* serverName,
   System.string* connectionString
)

Parameters

serverName
The name of the SQL Server instance.
connectionString
The connection string that contains SQL Server credentials and other settings.
Exceptions
ExceptionDescription
System.ArgumentNullException

The serverName parameter is null

or

The connectionString parameter is null

System.ArgumentException

The serverName parameter is an empty string

or

The connectionString parameter is an empty string

Remarks
To create a connection string for SQL Server, use the methods provided by the class xSQL.Utils.SqlConnectionHelper.
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