我用C# WEB 服务页查询数据库 用XML格式发送给客户端,但是无法取得数据库表头啊,不知道各位大哥有什么办法.就是查询表头用什么办法 strSql = "SELECT COUNT(*) FROM " + TableName+ " "+InputNod.InnerText;
sqlcmd=new SqlCommand (strSql ,sqlconn );
record= sqlcmd.ExecuteReader();
record.Read();
int RecordCount = record.GetInt32(0);
record.Close();上面是我取得数据记录数的办法.
sqlcmd=new SqlCommand (strSql ,sqlconn );
record= sqlcmd.ExecuteReader();
record.Read();
int RecordCount = record.GetInt32(0);
record.Close();上面是我取得数据记录数的办法.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货