1

I done database backup from remote server. Here i find instructions

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

Now i can not open and execute file in SSMS because this file is too big.

I find examples how execute with CMD. But here you must to write database destination. And my sql script creates a new database.

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

Conclusion: I do not know how to execute properly my sql file.

TomTom
  • 91
  • 1
  • 11

1 Answers1

1

I used just myServer. Without db name

sqlcmd -S myServer -i C:\myScript.sql
TomTom
  • 91
  • 1
  • 11