如何读取SQL Server内容至TextBox 本帖最后由 carl9081 于 2009-07-28 17:23:55 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 SqlConnection cn=new SqlConnection(sqlCon); string sqlStr="select ent_name from base_enterprise where ent_id=1000"; SqlCommand cmd=new SqlCommand(sqlStr,cn); SqlDataAdapter my=new SqlDataAdapter(cmd); DataSet ds=new DataSet(); my.Fill(ds);TextBox1.Text = ds.Tables[0].rows[0][0] 我的sql server2008 本地服务器显示空 一个有关数据绑定的问题 自己创建的线程池,碰到一个问题,哪位大侠帮我看看 在APS.NET 中向oracle 数据库插入数据问题 程序发布问题 急!!! 在局域网里面用remoting好还是web service好? 如何让DataTable.Select()方法返回指定的行数 就如同top关键字的意思一样 求救 :winform中的textBox中如何控制只能输入数值类型,不能输入其他字符? MSMQ偶尔无法接收本地消息包,是否消息包堵塞? 数据导出到Excel,字符串格式问题 正则表达式匹配 关于C#取余的一个天大的问题
string sqlStr="select ent_name from base_enterprise where ent_id=1000";
SqlCommand cmd=new SqlCommand(sqlStr,cn);
SqlDataAdapter my=new SqlDataAdapter(cmd);
DataSet ds=new DataSet();
my.Fill(ds);TextBox1.Text = ds.Tables[0].rows[0][0]