SQLExecute is a command line utility for executing SQL queries. It is
very handy in batch scripts (.bat files) or for scheduled tasks.
Parameters
SQLExecute takes a number of command line parameters.
Parameter |
Description |
/U:xxxx
|
User name for SQL Server login (SQL Server authentication) |
/P:xxxx
|
Password for SQL Server login |
/S:xxxx
|
Name of the SQL Server instance |
/D:xxxxx
|
Name of the database |
/F:xxxxx
|
Full path and file name of the file containing SQL code |
/A
|
Autorun the script file |