摘要: string strConn; strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + filePath + ";Extended Properties='Excel 8.0;HDR=F... 阅读全文
posted @ 2014-06-10 15:00 慧由心生 阅读(395) 评论(0) 推荐(0)
摘要: 1、检查数据库连接的有效性 var client = new System.Net.Sockets.TcpClient(); var ar = client.BeginConnect(host, 1433, null, null); ar.AsyncWaitHandle.WaitOn... 阅读全文
posted @ 2014-06-10 14:54 慧由心生 阅读(9000) 评论(1) 推荐(0)