An authenticated Microsoft SQL Server connection info. More...
#include <MSSQLConnectionInfo.h>
Public Member Functions | |
const std::wstring & | GetIPAddress () const |
get the database ip address or host name More... | |
void | SetIPAddress (const std::wstring &ipaddress) |
set the database ip address or host name More... | |
int | GetPort () const |
get the database port number More... | |
void | SetPort (int port) |
set the database port number More... | |
AppSecInc::Databases::ODBC::ODBCConnectionProtocol | GetProtocol () const |
get the connection protocol: TCP/IP or named pipes More... | |
void | SetProtocol (AppSecInc::Databases::ODBC::ODBCConnectionProtocol protocol) |
set the connection protocol More... | |
bool | GetTrustedAuth () const |
get whether to use trusted auth More... | |
void | SetTrustedAuth (bool value) |
set whether to use trusted auth More... | |
const std::wstring & | GetUsername () const |
get username More... | |
void | SetUsername (const std::wstring &username) |
set username More... | |
const std::wstring & | GetPassword () const |
get password More... | |
void | SetPassword (const std::wstring &password) |
set password More... | |
const std::wstring & | GetDatabase () const |
get default database name More... | |
void | SetDatabase (const std::wstring &database) |
set default database name More... | |
const std::wstring & | GetAppName () const |
get application name More... | |
void | SetAppName (const std::wstring &value) |
set application name More... | |
const std::wstring & | GetInstanceName () const |
get the database instance name More... | |
void | SetInstanceName (const std::wstring &instancename) |
set the database instance name More... | |
const std::wstring & | GetNamedPipeValue () const |
get the instance named pipe value More... | |
void | SetNamedPipeValue (const std::wstring &namedpipe) |
set the instance named pipe value More... | |
MSSQLConnectionInfo (const MSSQLConnectionInfo &) | |
constructors/destructors More... | |
MSSQLConnectionInfo (const std::wstring &ipaddress=DEFAULT_IPADDRESS, int port=DEFAULT_PORT) | |
~MSSQLConnectionInfo () | |
void | operator= (const MSSQLConnectionInfo &) |
std::wstring | GetConnectionString () const |
get the connection string More... | |
Public Member Functions inherited from AppSecInc::Databases::ODBC::ODBCConnectionInfo | |
ODBCConnectionInfo () | |
virtual | ~ODBCConnectionInfo () |
Static Public Attributes | |
static LPCWSTR | DEFAULT_IPADDRESS = L"localhost" |
the default ip address More... | |
static const int | INVALID_PORT = -1 |
an invalid port More... | |
static const int | DEFAULT_PORT = 1433 |
the default port More... | |
static LPCWSTR | DefaultInstanceName = L"MSSQLSERVER" |
the default instance name; MSSQLSERVER More... | |
Protected Attributes | |
std::wstring | _ipaddress |
the database ip address More... | |
int | _port |
the database port More... | |
AppSecInc::Databases::ODBC::ODBCConnectionProtocol | _protocol |
the connection protocol to use; default is unspecified More... | |
std::wstring | _instancename |
the name of the database instance More... | |
bool | _trusted_auth |
use trusted auth (windows auth) More... | |
std::wstring | _username |
username More... | |
std::wstring | _password |
password More... | |
std::wstring | _database |
database name More... | |
std::wstring | _appname |
application name connecting to the remote database More... | |
std::wstring | _namedpipe |
named pipe for the database instance More... | |
An authenticated Microsoft SQL Server connection info.
MSSQLConnectionInfo::MSSQLConnectionInfo | ( | const MSSQLConnectionInfo & | info | ) |
constructors/destructors
MSSQLConnectionInfo::MSSQLConnectionInfo | ( | const std::wstring & | ipaddress = DEFAULT_IPADDRESS , |
int | port = DEFAULT_PORT |
||
) |
MSSQLConnectionInfo::~MSSQLConnectionInfo | ( | ) |
|
inline |
get application name
|
virtual |
get the connection string
Implements AppSecInc::Databases::ODBC::ODBCConnectionInfo.
|
inline |
get default database name
|
inline |
get the database instance name
|
inline |
get the database ip address or host name
|
inline |
get the instance named pipe value
|
inline |
get password
|
inline |
get the database port number
|
inline |
get the connection protocol: TCP/IP or named pipes
|
inline |
get whether to use trusted auth
|
inline |
get username
void MSSQLConnectionInfo::operator= | ( | const MSSQLConnectionInfo & | info | ) |
|
inline |
set application name
|
inline |
set default database name
|
inline |
set the database instance name
|
inline |
set the database ip address or host name
|
inline |
set the instance named pipe value
|
inline |
set password
|
inline |
set the database port number
|
inline |
set the connection protocol
|
inline |
set whether to use trusted auth
|
inline |
set username
|
protected |
application name connecting to the remote database
|
protected |
database name
|
protected |
the name of the database instance
|
protected |
the database ip address
|
protected |
named pipe for the database instance
|
protected |
password
|
protected |
the database port
|
protected |
the connection protocol to use; default is unspecified
|
protected |
use trusted auth (windows auth)
|
protected |
username
|
static |
the default ip address
|
static |
the default port
|
static |
the default instance name; MSSQLSERVER
|
static |
an invalid port
© Application Security Inc. - All Rights Reserved | http://msiext.codeplex.com |