摘要: 在网上找了一圈,有各种各样的说法。基本思路都是通过代码连接数据库,看连接是否能正常建立。为了确保数据库能正常使用,还要通过一个简单的 SELECT 语句去测试。参考代码如下:internalboolSQLQuery(stringconnectionString){boolsucceed =false;try{SqlConnectionp_connectionString =newSqlConnection(connectionString);p_connectionString.Open();SqlCommandp_selectCommand =newSqlCommand("SELE 阅读全文
posted @ 2012-07-23 18:12 Devil_Zhang 阅读(1538) 评论(0) 推荐(0) 编辑