I have an application written in VB.NET that collects information from an SQL/MX database via an ODBC driver. All works fine except for one specific table that contains two INTERVAL DAY(2) fields. When I run the query for this table I get an 'Unknown SQL type - 103' error. If change my query to exclude these fields then it works fine.
Dim SQLQueryDataAdapter As New OdbcDataAdapter(MySQLQuery, MyNonStopConnection)
Dim SQLQueryOutputTable As New DataTable("SQLOutput")
SQLQueryDataAdapter.Fill(SQLQueryOutputTable)
My ODBC connection string:
MyNonStopConnection = New OdbcConnection(
"Driver=" & MyDriver & ";DSN=" & MyDSN & ";SERVER=TCP:" _
& MyTCP & ";UID=" & MyUserName & ";PWD=" & MyPassword)
MyNonStopConnection.Open()
What am I doing wrong?