we have working code to connect to a database (oracle/tns or sql server/odbc) under td 7.1.1. Now we updated to 7.1.2, same code, same configuration but we get the sql error 999 on SqlCreateStatement:
Code: Select all
On SAM_AppStartup
Set SqlDatabase = 'db'
Set SqlUser = 'USER'
Set SqlPassword = 'PASSWORD'
If SqlCreateSession( hSession, STRING_Null )
Call SqlCreateStatement( hSession, hSql )
Call SalMessageBox( 'all fine', 'Info', MB_IconInformation|MB_Ok )
On SAM_SqlError
Call SqlExtractArgs( wParam, lParam, hSqlError, nSqlError, nErrorPos )
Call SalMessageBox( 'Error: ' || SalNumberToStrX( nSqlError, 0 ), 'Error', MB_IconHand|MB_Ok )
Andreas