2011年2月23日
摘要: 阅读全文
posted @ 2011-02-23 19:40 no-code 阅读(608) 评论(0) 推荐(0)
摘要: 思路:先读取文件,以GO为段落,把每一个GO的段落当做一条SQL命令,在通过事务一起执行。public static ArrayList GetSqlFile(string varFileName, string dbname) { ArrayList alSql = new ArrayList(); if (!File.Exists(varFileName)) { return alSql; } StreamReader rs = new StreamReader(varFileName, System.Text.Encoding.Default);//注意编码 string command 阅读全文
posted @ 2011-02-23 16:13 no-code 阅读(11608) 评论(0) 推荐(1)