C# Класс DataAccessModule.SQLServerConnect

Наследование: DAConnect
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetConnectionString ( ) : string
ReadConfiguration ( string P_configFile ) : void

This method will read the configuration file and set all the internal attributes needed to process the file.

SQLServerConnect ( string P_configFile ) : System
SetupConnectionString ( string P_connectStr ) : void

Set the complete connection string

SetupConnectionString ( string P_server, string P_database ) : void

This is the conncetion string for an Integrated Security connection

SetupConnectionString ( string P_user, string P_password, string P_server, string P_database ) : void

This method will get the connection information and store it for later use.

Описание методов

GetConnectionString() публичный Метод

public GetConnectionString ( ) : string
Результат string

ReadConfiguration() публичный Метод

This method will read the configuration file and set all the internal attributes needed to process the file.
public ReadConfiguration ( string P_configFile ) : void
P_configFile string /// Fully qualifed path to the configuration file ///
Результат void

SQLServerConnect() публичный Метод

public SQLServerConnect ( string P_configFile ) : System
P_configFile string
Результат System

SetupConnectionString() публичный Метод

Set the complete connection string
public SetupConnectionString ( string P_connectStr ) : void
P_connectStr string /// Full connection string to use ///
Результат void

SetupConnectionString() публичный Метод

This is the conncetion string for an Integrated Security connection
public SetupConnectionString ( string P_server, string P_database ) : void
P_server string /// Name of the server ///
P_database string /// name of database ///
Результат void

SetupConnectionString() публичный Метод

This method will get the connection information and store it for later use.
public SetupConnectionString ( string P_user, string P_password, string P_server, string P_database ) : void
P_user string /// User name used to connect to the database ///
P_password string /// Password to connect to the database with ///
P_server string /// Name of the server where the database is ///
P_database string /// Name of the database to use when connected ///
Результат void