How to Prepare an ADO.NET Statement which includes an NText (clob) parameter

前端 未结 2 1951
别那么骄傲
别那么骄傲 2021-01-24 17:35

I\'m updating an existing application which uses a factory to build prepared statements, and then execute them later, which works for the rest of the system, but I\'ve been task

2条回答
  •  北恋
    北恋 (楼主)
    2021-01-24 18:10

    Don't use NTEXT, is a deprecated type. If your database has an NTEXT column change it to VARBINARY(MAX). Use -1 for MAX type parameters length: (...,SqlDbType.Varbinary, -1).

提交回复
热议问题