Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)

  • RE: Executing multiple .sql files in folder

    ups!! pasted from my batch directly:)...actually only first line is sufficient:

    @for %%s in (output\sql\*.sql) do ( sqlcmd -S server-name -d database-name -U user-name -P password -i "%%s" )

    😉

  • RE: Executing multiple .sql files in folder

    Create batch file with the following contents and replace

    server-name, database-name, user-name and password.

    @for %%s in (output\sql\*.sql) do ( sqlcmd -S server-name -d database-name -U user-name -P password -i "%%s"...

Viewing 2 posts - 1 through 2 (of 2 total)