在存贮过程里读写text,要用到READTEXT  UPDATETEXT  WRITETEXT  进行操作.

在C#中,用select text from table 是可以直接取到值的.

在做更新,新增操作时,用@text传text的值,也能正常赋值.

text类型直接赋string

image类型用byte[]

 insert:

操作sql2000中的text,image字段类型.string strSql = "INSERT INTO [dbo].[Tableimg]( [img]) VALUES(@img) ";
操作sql2000中的text,image字段类型.
using (System.Data.SqlClient.SqlConnection myConnection = new System.Data.SqlClient.SqlConnection(CommConfig.InfodbConnectstring))
}

select:

操作sql2000中的text,image字段类型.string strSql = "SELECT [id], [img] FROM [dbo].[Tableimg] where id = 1 ";
操作sql2000中的text,image字段类型.
操作sql2000中的text,image字段类型.
using (System.Data.SqlClient.SqlConnection myConnection = new System.Data.SqlClient.SqlConnection(CommConfig.InfodbConnectstring))
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-13
  • 2022-01-17
  • 2021-10-10
  • 2022-01-26
  • 2021-06-14
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-03
  • 2022-12-23
  • 2021-10-29
相关资源
相似解决方案