以下内容转载于http://www.cnblogs.com/greatqn/archive/2007/03/21/637117.html,
希望楼主,不会介意,我已经注明来源了
在存贮过程里读写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))
}


此文转载于http://www.cnblogs.com/greatqn/archive/2007/03/21/637117.html

相关文章: