G
Guest
Has anyone run across the following exception and have any idea what the
issue is?
System.Data.OleDb.OleDbException: [NCR][Teradata RDBMS] A character string
failed conversion to a numeric value.
at System.Data.OleDb.OleDbCommand.ProcessResults(Int32 hr)
at System.Data.OleDb.OleDbCommand.PrepareCommandText(Int32
expectedExecutionCount)
at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior
behavior, String method)
at System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior)
at TDView_App.Databases.GetSchemaToDD() in C:\Documents and
Settings\...\TDView_App\Databases.vb:line 445
Here is the line of code referenced and the next.
Line 445: Dim TDReader As OleDbDataReader =
TDCmd.ExecuteReader(CommandBehavior.KeyInfo Or CommandBehavior.SchemaOnly)
Line 446: oTable = TDReader.GetSchemaTable()
The reason I'm posting this is that the code runs fine for 463 executions
out of 465, but it consistently thows this exception for 2 views.
As some background, I'm trying to extract table and view schema/metadata
from a Teradata DB. So the
idea behind the code above is to pull just the column metadata (type,
length, etc.) without pulling
any data. And, it works pretty well, except for a small percentage of these
errors. I'm fairly sure the
connection, OleDbDataReader, etc. are correct because of the 463 working
executions.
Is this a Teradata, driver issue, or an ADO.net peculiarity?
Any thoughts would be appreciated.
issue is?
System.Data.OleDb.OleDbException: [NCR][Teradata RDBMS] A character string
failed conversion to a numeric value.
at System.Data.OleDb.OleDbCommand.ProcessResults(Int32 hr)
at System.Data.OleDb.OleDbCommand.PrepareCommandText(Int32
expectedExecutionCount)
at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior
behavior, String method)
at System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior)
at TDView_App.Databases.GetSchemaToDD() in C:\Documents and
Settings\...\TDView_App\Databases.vb:line 445
Here is the line of code referenced and the next.
Line 445: Dim TDReader As OleDbDataReader =
TDCmd.ExecuteReader(CommandBehavior.KeyInfo Or CommandBehavior.SchemaOnly)
Line 446: oTable = TDReader.GetSchemaTable()
The reason I'm posting this is that the code runs fine for 463 executions
out of 465, but it consistently thows this exception for 2 views.
As some background, I'm trying to extract table and view schema/metadata
from a Teradata DB. So the
idea behind the code above is to pull just the column metadata (type,
length, etc.) without pulling
any data. And, it works pretty well, except for a small percentage of these
errors. I'm fairly sure the
connection, OleDbDataReader, etc. are correct because of the 463 working
executions.
Is this a Teradata, driver issue, or an ADO.net peculiarity?
Any thoughts would be appreciated.