using System; using System.Data; using System.Data.OleDb; using System.Data.SqlClient; using System.Windows.Forms ; using System.Collections ; //author:xiong xiangzhong //date:2004-12-12p //function: Connect to the SQL server //Query the SQL to serv
使用OleDBCommand相关操作类需要引入System.Data.OleDb命名空间。
通过连接一个带密码的access数据库 读取其中的数据并置入表格中显示,验证连接和命令使用正确性。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.D