摘要:
<add name="connStr" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\Example.mdb" providerName="System.Data.OleDb"/>|DataDirectory|的使用,太酷了!摘自:http://www.cnblogs.com/huangjianhuakarl/archive/2009/02/03/1381710.html查找到|DataDirectory|的相关 阅读全文
摘要:
DataTable columnTable = Connection.GetOleDbSchemaTable(OleDbSchemaGuid.Columns, new object[] { null, null, dr["TABLE_NAME"].ToString(), null });一直想找一下这里面返回的DataTable的列名,可是到现在还没找到,到是在http://www.cnblogs.com/CPFlying/archive/2010/11/13/1876510.html中找到一段有用的东西;foreach (DataRow dr2 in columnTabl 阅读全文