Applies to
ApexSQL Data Diff, ApexSQL Diff, ApexSQL Log, ApexSQL Recover
Summary
This article shows how to execute large scripts created by ApexSQL tools which are too big to be opened or executed by SQL Server Management Studio Query Editor
Description
Synchronization scripts, undo and redo scripts, and recovery scripts generated by ApexSQL tools can be so big that SQL Server Management Studio Query Editor can’t open and execute them
To run these scripts use:
- The osql command line utility that comes with SQL Server:
osql -H <computer_name> -S <instance_name> -U <username> -P <password> -i <path> - The sqlcmd command line utility that comes with SQL Server:
sqlcmd -S <computer_name\instance_name> -d <database_name> -i <path> -o <output> - ApexSQL Run Script:
- Download ApexSQL Run Script
- Unzip it into a folder
- Use the Command line and navigate to the folder where the file was unzipped
- Run the utility with the following parameters:
ApexSqlRunScript <computer_name\instance_name> <database> <path>
Last updated
October 08, 2014