zey*_*zey 5 sql-server-2008-r2
当我在SQL Server 2008 R2中运行仅数据脚本时,它显示以下错误:
无法执行脚本
附加信息:
抛出了类型'System.OutOfMemoryException'的异常.(mscorlib程序)
脚本文件的大小是115MB,它只是数据.
当我打开此脚本文件时,它显示:
Document contains one or more extremely long lines of text.
These lines cause the editor to respond slowly when you open the file .
Do you still want to open the file ?
Run Code Online (Sandbox Code Playgroud)
我首先运行仅架构脚本,然后运行仅数据脚本.
有没有办法解决这个错误?
zey*_*zey 13
我使用sqlcmd utitlity 解决了它.
sqlcmd -S "Server\InstanceName" -U "instantName" -P "password" -i FilePathForScriptFile
Run Code Online (Sandbox Code Playgroud)
例如 :
sqlcmd -S .\SQLEXPRESS -U sa -P 123 -i D:\myScript.sql
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
8714 次 |
| 最近记录: |