[DllImport("odbccp32", CharSet=CharSet.Auto)]
public static extern SQL_RETURN_CODE SQLInstallerError(
int iError,
ref int pfErrorCode,
StringBuilder lpszErrorMsg,
int cbErrorMsgMax,
ref int pcbErrorMsg);
Declare Function SQLInstallerError Lib "odbccp32.dll" (TODO) As TODO
public enum SQL_RETURN_CODE : int
{
SQL_ERROR = -1,
SQL_INVALID_HANDLE = -2,
SQL_SUCCESS = 0,
SQL_SUCCESS_WITH_INFO = 1,
SQL_STILL_EXECUTING = 2,
SQL_NEED_DATA = 99,
SQL_NO_DATA = 100
}
None.
Please add some!
StringBuilder errorMesg = new StringBuilder( 512 ) ;
int errorCode = 0 ;
int resizeErrorMesg = 0 ;
//
// Get the error message
//
SQL_RETURN_CODE retCode = SQLInstallerError(
1,
ref errorCode,
errorMesg,
errorMesg.Capacity,
ref resizeErrorMesg ) ;
Do you know one? Please contribute it!