【问题标题】:How to execute large sql file (800MB) with SSMS 2019? My sql file is database backup如何使用 SSMS 2019 执行大型 sql 文件(800MB)?我的sql文件是数据库备份
【发布时间】:2019-08-22 07:41:38
【问题描述】:

我从远程服务器完成了数据库备份。 在这里我找到说明

How can I backup a remote SQL Server database to a local drive?

现在我无法在 SSMS 中打开和执行文件,因为这个文件太大了。

我找到了如何使用 CMD 执行的示例。但是在这里你必须写数据库目的地。我的 sql 脚本创建了一个新的数据库。

sqlcmd -S myServer\instanceName -i C:\myScript.sql

结论:我不知道如何正确执行我的sql文件。

【问题讨论】:

  • 然后使用master作为您的连接数据库。
  • 我只使用了 myServer。没有数据库名称

标签: sql-server ssms


【解决方案1】:

我只使用了 myServer。没有数据库名称

sqlcmd -S myServer -i C:\myScript.sql

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-09-18
    • 2017-08-29
    相关资源
    最近更新 更多