A Microsoft SQL Server database. More...
#include <AccessDatabase.h>
Public Member Functions | |
const std::wstring | GetDBQ () const |
get the database (.mdf file) name More... | |
void | SetDBQ (const std::wstring &value) |
set the database (.mdf file) name More... | |
AppSecInc::Databases::ODBC::ODBCConnection & | GetConnection () |
returns the connection object More... | |
const AppSecInc::Databases::ODBC::ODBCConnection & | GetConnection () const |
AccessDatabase () | |
constructors/destructors More... | |
AccessDatabase (const AppSecInc::Databases::ODBC::ODBCConnectionInfo &connectioninfo) | |
void | Create () |
create the database, fail if exists More... | |
bool | Exists () |
returns true if database exists More... | |
void | Connect () |
connect to the database server More... | |
void | Disconnect () |
disconnect from the database server More... | |
void | Drop () |
drop the database More... | |
~AccessDatabase () | |
MSXML2::IXMLDOMNodePtr | Save (AppSecInc::Xml::XmlDocument &xmldoc, MSXML2::IXMLDOMNodePtr parent) const |
serialize database to xml More... | |
void | Load (AppSecInc::Xml::XmlDocument &xmldoc, MSXML2::IXMLDOMNodePtr root) |
deserialize database from xml More... | |
Public Member Functions inherited from AppSecInc::Databases::ODBC::ODBCDatabase | |
ODBCDatabase () | |
constructor More... | |
virtual void | CreateIfNotExists () |
create the database if it doesn't exist More... | |
virtual void | DropIfExists () |
drop the database if it exists More... | |
virtual | ~ODBCDatabase () |
destructor More... | |
A Microsoft SQL Server database.
AccessDatabase::AccessDatabase | ( | ) |
constructors/destructors
AccessDatabase::AccessDatabase | ( | const AppSecInc::Databases::ODBC::ODBCConnectionInfo & | connectioninfo | ) |
AccessDatabase::~AccessDatabase | ( | ) |
|
virtual |
connect to the database server
Implements AppSecInc::Databases::ODBC::ODBCDatabase.
|
virtual |
create the database, fail if exists
Implements AppSecInc::Databases::ODBC::ODBCDatabase.
|
virtual |
disconnect from the database server
Implements AppSecInc::Databases::ODBC::ODBCDatabase.
|
virtual |
drop the database
Implements AppSecInc::Databases::ODBC::ODBCDatabase.
|
virtual |
returns true if database exists
Implements AppSecInc::Databases::ODBC::ODBCDatabase.
|
inline |
returns the connection object
|
inline |
|
inline |
get the database (.mdf file) name
void AccessDatabase::Load | ( | AppSecInc::Xml::XmlDocument & | xmldoc, |
MSXML2::IXMLDOMNodePtr | root | ||
) |
deserialize database from xml
MSXML2::IXMLDOMNodePtr AccessDatabase::Save | ( | AppSecInc::Xml::XmlDocument & | xmldoc, |
MSXML2::IXMLDOMNodePtr | parent | ||
) | const |
serialize database to xml
|
inline |
set the database (.mdf file) name
© Application Security Inc. - All Rights Reserved | http://msiext.codeplex.com |