BCGSuite for MFC
virtual BOOL CBCGPDBGridCtrl::OpenDB ( LPCTSTR  lpszConnectionStr,
LPCTSTR  lpszUserName = _T(""),
LPCTSTR  lpszPassword = _T(""),
LPARAM  lOptions = 0 
)
pure virtual

Opens connection to database.

Returns
TRUE, if the method succeeds; otherwise FALSE.

This method opens connection to the database file specified in the connection string.

Parameters
lpszConnectionStrConnection string
lpszUserNameUser name
lpszPasswordPassword
lOptionsOptions