当前位置:首页 » 编程博文
开发技术指南» 文章正文
    引言: 数据库表结构: IF EXISTS (SELECT name
 

 

    摘要:受影响系统:  linux kernel 2.6.7  linux kernel 2.6.6  linux kernel 2.6.5  linux kernel 2.6.4  linux kernel 2.6.3  linux kernel 2.6.2  linux kernel 2.6.1-rc2  linux kernel 2.6.1-rc1  linux kernel 2.6.1  linu......
 ·webmin    »显示摘要«
    摘要:introduction: "webmin is a web-based interface for system administration for unix. using any browser that supports tables and forms (and java for the file manager module), you can setup user acc......


CSharp读写SQL Server数据库中的Image列

数据库表结构:

 drop table content 【程序编程相关:软件工程思想-林锐:第二章 程序员与程

if exists (select name from sysobjects where name = ´content´ and type = ´u´) 【推荐阅读:通过Emit实现动态类生成

create table content 【扩展信息:MD5算法研究(转载)

go

(

 --内容id

 id bigint identity(1,1) not null,

 --内容

 data image default null,

  constraint pk_contentid primary key clustered (id)

)

go

const string cnnstr = "provider=sqloledb.1;user id=sa;password=;initial catalog=mydb;data source=(local)";

写入

public bool writecontent(byte [] data)

  {   

   oledbconnection conn = new oledbconnection(cnnstr);

   string myselectquery = "insert into content(data)values(?)";

   oledbcommand mycommand = new oledbcommand(myselectquery, conn);

   mycommand.commandtimeout = 60;

   

   

   oledbparameter param = new oledbparameter("@data", oledbtype.varbinary, data.length);    

   param.direction = parameterdirection.input;

   param.value = data;

   

   mycommand.parameters.add(param);

   bool ret = false;


...   下一页
    摘要:inteliim - 基于 c# / microsoft.net 平台上的局域网即时通讯软件,build 1.0.1.21 近日内提供下载/电邮测试,详情请与 qq : 28592801, msn/email: itecgo@hotmail.com 联系。 产品主页 . ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE