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

前端 未结 2 1950
别那么骄傲
别那么骄傲 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 17:51

    Can you set it to the length of the data you're passing in to @File parameter? This is just a suggestion.

    0 讨论(0)
  • 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).

    0 讨论(0)
提交回复
热议问题