[求助]C#链接数据的代码
C#链接SQL的代码是
SqlConnection conn = null;
SqlCommand cmd = null;
SqlDataReader dr = null;
public sqlserver(string servername, string dataname, string uid, string pwd)
{
string connstr = "server=" + servername + ";database=" + dataname + ";uid=" + uid + ";pwd=" + pwd + ";";
conn = new SqlConnection(connstr);
}
请教一下,链接ACCESS的代码是什么呀~谢谢~