数据库连接网格
代码说明:
using System; using System.Data; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; using System.Data.OleDb; namespace Test07 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } OleDbConnection conn; private void button1_Click(object sender, EventArgs e) { string conn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:Bible111.mdb";//连接数据库 OleDbConnection con = new OleDbConnection(conn); //OLEDB连接con = OLEDB连接conn
下载说明:请别用迅雷下载,失败请重下,重下不扣分!