摘要:
sqlserver2008中需要执行大文件的脚本,查询分析器中打不开,需要用到sql命令,开始使用osql命令 使用sqlcmd可以执行:在DOS中,调用sqlcmd命令,并使用对应选项 sqlcmd -S localhost -U sa -P 1 -i "c:\xxx\MySql.sql" 阅读全文
摘要:
static void ReadData(string sourcePath, string targetDirectory) { FileStream fs = new FileStream(sourcePath, FileMode.Open, FileAccess.Read); StreamReader sr =... 阅读全文