- Joined
- Sep 13, 2012
- Messages
- 58
- Reaction score
- 0
After much trial and error I have the Database Access almost working. I am using an ODBC Connection and have logging turned on for the ODBC Driver so I can view all queries. I have also checked the logs on my database and see an incoming ODBC connection login and disconnect as expected. I have also ran a wireshark trace on my DB server and see two way traffic that looks as expected. So, everything seems to be working, however it does not and I get the error below in the Errors_DatabaseAccess.log.
I have ran through the code and can't understand why I am getting connection errors if everything above looks good. Any help is greatly appreciated.
Code:
2013-08-10 14:24:03.293
System.Data.Odbc.OdbcException (0x80131937)
at System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle hrHandle, RetCode retcode)
at System.Data.Odbc.OdbcDataReader.GetColAttribute(Int32 iColumn, SQL_DESC v3FieldId, SQL_COLUMN v2FieldId, HANDLER handler)
at System.Data.Odbc.OdbcDataReader.GetSqlType(Int32 i)
at System.Data.Odbc.OdbcDataReader.GetValue(Int32 i)
at System.Data.Odbc.OdbcDataReader.GetValues(Object[] values)
at ASP.directory_debug_41_directory_mf_databaseaccesscomponent1_doit_aspx.executeStatement(IDbConnection conn, String statementType, String sqlStatement, Int32 timeout) in c:\ProgramData\3CX\Data\Http\Interface\ivr\Directory_Debug_41\Directory_MF_databaseAccessComponent1_DoIt.aspx:line 50
at ASP.directory_debug_41_directory_mf_databaseaccesscomponent1_doit_aspx.Page_Load(Object sender, EventArgs e) in c:\ProgramData\3CX\Data\Http\Interface\ivr\Directory_Debug_41\Directory_MF_databaseAccessComponent1_DoIt.aspx:line 140
I have ran through the code and can't understand why I am getting connection errors if everything above looks good. Any help is greatly appreciated.