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


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

Parameters

serverName
The name of the SQL Server instance.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionThe serverName parameter is null.
System.ArgumentExceptionThe serverName parameter is an empty string.
Remarks
This constructor connects to the SQL Server instance using the Windows 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