H
Howard Hoffman
Does the System.Data.Common.OdbDataReader type shipping with VS.NET 2005
support the XML column type on SQL Server 2005?
I've a stored procedure that has an input parameter of the XML data type.
If I create an OdbcDataReader via OdbcCommand.ExecuteReader( .. ) and try to
call GetSchemaTable I get an OdbcException with a 4200 Error:
ERROR [4200][Microsoft][SQL Native Client][SQL Server]Incorrrect syntax near
the keyword 'convert'
Here's the partial ODBC Provider stack trace:
StackTrace " at System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle
hrHandle, RetCode retcode)\r\n at
System.Data.Odbc.OdbcDataReader.get_FieldCount()\r\n at
System.Data.Odbc.OdbcDataReader.NewSchemaTable()\r\n at
System.Data.Odbc.OdbcDataReader.GetSchemaTable()\r\n at
....mycalltoGetSchemaTableHERE"
My CommandText is "{? = CALL dbo.MySproc(?)}"
My CommandBehavior input to OdbcCommand.ExecuteReader is SchemaOnly |
KeyInfo | CloseConnection. (I've also tried SchemaOnly | CloseConnection).
Does the Win32 API SQLNumResultCols barf when there's an XML column type?
Is the advice...don't use XML columns or stored procedure parameters with
ODBC?
If this isn't the right newsgroup for this query, please accept apologies
and direct me to the correct newsgroup.
Thanks in advance,
Howard Hoffman
support the XML column type on SQL Server 2005?
I've a stored procedure that has an input parameter of the XML data type.
If I create an OdbcDataReader via OdbcCommand.ExecuteReader( .. ) and try to
call GetSchemaTable I get an OdbcException with a 4200 Error:
ERROR [4200][Microsoft][SQL Native Client][SQL Server]Incorrrect syntax near
the keyword 'convert'
Here's the partial ODBC Provider stack trace:
StackTrace " at System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle
hrHandle, RetCode retcode)\r\n at
System.Data.Odbc.OdbcDataReader.get_FieldCount()\r\n at
System.Data.Odbc.OdbcDataReader.NewSchemaTable()\r\n at
System.Data.Odbc.OdbcDataReader.GetSchemaTable()\r\n at
....mycalltoGetSchemaTableHERE"
My CommandText is "{? = CALL dbo.MySproc(?)}"
My CommandBehavior input to OdbcCommand.ExecuteReader is SchemaOnly |
KeyInfo | CloseConnection. (I've also tried SchemaOnly | CloseConnection).
Does the Win32 API SQLNumResultCols barf when there's an XML column type?
Is the advice...don't use XML columns or stored procedure parameters with
ODBC?
If this isn't the right newsgroup for this query, please accept apologies
and direct me to the correct newsgroup.
Thanks in advance,
Howard Hoffman