Search code examples
c#sql-serveroledb

OleDbDataAdapter exception with ntext using SQL Server CE 3.5


OleDbDataAdapter internal error: invalid row set accessor: Ordinal=6 Status=UNSUPPORTEDCONVERSION

All I'm doing is trying to do a simple select statement. The field in ordinal 6 is a NTEXT field. Are they telling me I can't use NTEXT fields in my database with OleDb providers? Is there any workaround here?


Solution

  • Yes, your supposition is correct. NTEXT is no longer supported in string functions for the latest .NET tools. I'd suggest, since you're using SQL 2005, to change the column type in the database to NVARCHAR.