Méthode | Description | |
---|---|---|
CreateSqlConnectionWithSqlLogin ( string dataSource, string username, string password, string databaseName = null ) : |
Creates sql connection object with sql login
|
|
CreateSqlConnectionWithWindowsLogin ( string dataSource, string databaseName = null ) : |
Create SqlConnection object for windows authentication
|
|
IsSqlServerInstalled ( ) : bool |
Checks if sql is already installed on the machine
|
|
TestSqlConnectionWithSqlServerLogin ( string dataSource, string username, string password ) : bool |
Tries to connect to sql database with user provided credentials
|
|
TestSqlServerConnectionWithWindowsLogin ( string dataSource ) : bool |
Tries to connect to sql database with windows login.
|
Méthode | Description | |
---|---|---|
CheckSqlServer ( |
public static CreateSqlConnectionWithSqlLogin ( string dataSource, string username, string password, string databaseName = null ) : |
||
dataSource | string | |
username | string | |
password | string | |
databaseName | string | |
Résultat |
public static CreateSqlConnectionWithWindowsLogin ( string dataSource, string databaseName = null ) : |
||
dataSource | string | |
databaseName | string | |
Résultat |
public static IsSqlServerInstalled ( ) : bool | ||
Résultat | bool |
public static TestSqlConnectionWithSqlServerLogin ( string dataSource, string username, string password ) : bool | ||
dataSource | string | |
username | string | |
password | string | |
Résultat | bool |
public static TestSqlServerConnectionWithWindowsLogin ( string dataSource ) : bool | ||
dataSource | string | |
Résultat | bool |