Set the default server to the specified server for subsequent function calls that do not specify a server.

Namespace: T.Toolkit
Assembly: T.Toolkit (in T.Toolkit.dll)

Public Function SetServer( _ 
ByVal serverName As String, _ 
ByVal serverName2 As String, _ 
ByVal userName As String, _ 
ByVal password As String, _ 
ByVal useWindowsAuthentication As Boolean, _ 
ByRef server As Object
) As String Implements _ 
IDataAccess.SetServer
This language is not supported or no code example is available.
public string SetServer( 
string serverName
string serverName2
string userName
string password
bool useWindowsAuthentication
out object server 
)
This language is not supported or no code example is available.
public:  
String^ SetServer( 
String^ serverName
String^ serverName2
String^ userName
String^ password
bool useWindowsAuthentication
object^& server 
)
This language is not supported or no code example is available.
public function SetServer( 
serverName : String
serverName2 : String
userName : String
password : String
useWindowsAuthentication : boolean
server : object 
) : String;
This language is not supported or no code example is available.

Parameters

serverName

Type: string

IP address or server name

serverName2

Type: string

Secondary IP address or server name

userName

Type: string

User name

password

Type: string

User password

useWindowsAuthentication

Type: bool

Flag indicating whether connection must use Windows Authentication

server

Type: object

Reference to server

Return Value

String containg error message or null (success)

Windows 8, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 4.5, 4

.NET Framework Client Profile

Supported in: 4, 3.5 SP1