摘要: sqlserver2008中需要执行大文件的脚本,查询分析器中打不开,需要用到sql命令,开始使用osql命令 使用sqlcmd可以执行:在DOS中,调用sqlcmd命令,并使用对应选项 sqlcmd -S localhost -U sa -P 1 -i "c:\xxx\MySql.sql" 阅读全文
posted @ 2017-06-28 18:06 科睿思博 阅读(584) 评论(0) 推荐(0) 编辑
摘要: static void ReadData(string sourcePath, string targetDirectory) { FileStream fs = new FileStream(sourcePath, FileMode.Open, FileAccess.Read); StreamReader sr =... 阅读全文
posted @ 2017-06-28 16:40 科睿思博 阅读(728) 评论(0) 推荐(0) 编辑