Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: ryanherbI have used the ODBC connection to draw data from the same table in MS Access - no problems encountered.
Mario and I have done some more digging. Here is the error log
*****
ERROR opening i/o streams:
unknown exception caught in main()
Installing log (04/20/2010 09:34:53) ...
2010-04-20 09:34:53; Level: 2; Type: 0; Desc: "Unable to translate ODBC type: -9"; File: "\src\brain_d\jigsaw\Code\Source\DB\ODBC\OdbcCodes .cpp"; Line: 62; Context: ""
2010-04-20 09:34:53; Level: 2; Type: 0; Desc: "unable to free statement handle"; File: "\src\brain_d\jigsaw\Code\Source\DB\ODBC\OdbcEnv.c pp"; Line: 352; Context: "OdbcEnv::FreeHandle(ctype)"
2010-04-20 09:34:53; Level: 2; Type: 0; Desc: "...exception seen"; File: "\src\brain_d\ra_dev\code\source\brain\DbNodeIo.cp p"; Line: 70; Context: "Salmon::NED::NodeIo::DbInput::DbInput()"
2010-04-20 09:34:53; Level: 2; Type: 0; Desc: "...exception seen"; File: "\src\brain_d\ra_dev\code\source\brain\QueryDumper \QueryDumperNodeControl.cpp"; Line: 125; Context: "Salmon::NED::QueryDumper::QueryDumperNodeControl: :createQueryInput()"
2010-04-20 09:34:53; Level: 2; Type: 0; Desc: "...exception seen"; File: "\src\brain_d\ra_dev\code\source\brain\QueryDumper \QueryDumperNodeControl.cpp"; Line: 99; Context: "Salmon::NED::QueryDumper::QueryDumperNodeControl: :initializeIo()"
Uninstalling log (04/20/2010 09:34:53) ...
*****
It appears the error occurs when it encounters the nvarchar data type in SQL Server 2005. For example:
[PERIODNAME] [nvarchar](256) NOT NULL,
If we execute:
select periodname from table
we get the error in the log above.
However, if we translate the nvarchar into a stock char:
select char(periodname) from table
Then the statement executes without error
Have you encountered the "unable to translate ODBC type: -9" error before?
Cheers - Ryan