PDA

View Full Version : SQLServerSelectLogin, Internal Error 0x80040707



jefftanner
06-14-2004, 01:05 PM
I am calling SQLServerSelectLogin() within prototype InstallScript function and it throws an exception, but Err.Description is blank.

However error message box does appear with the message "Internal Error 0x80040707, Description:"

The values that I passed intoSQLServerSelectLogin()

"(local)\\" + szSqlServerName
"sa"
"sapassword"
FALSE


prototype BOOL SQLServerSelectLoginDlg(BYREF STRING, BYREF STRING, BYREF STRING);

///////////////////////////////////////////////////////////////////////////////
//
// Function: SQLServerSelectLoginDlg
//
//
///////////////////////////////////////////////////////////////////////////////
function BOOL SQLServerSelectLoginDlg(szSqlServerNetworkName, szUserId, szPassword)
BOOL bvWindowsLogin;
begin
bvWindowsLogin = FALSE;
try
if ( SQLServerSelectLogin( szSqlServerNetworkName, szUserId, szPassword, bvWindowsLogin ) < ISERR_SUCCESS ) then
return FALSE;
endif;
catch
MessageBox( "SQLServerSelectLogin: " + Err.Description, WARNING);
return FALSE;
endcatch;

return TRUE;
end;