SQL Commands from DOS BAT File

  • I have DOS "BATCH" (*.bat) file and need to execute TSQL commands as part of it. How can I do that?

    Thanks in advance.

  • include executions of the sqlcmd utility in the .bat file

    sqlcmd is a command line utility to run SQL statements. see BOL.

    ---------------------------------------------------------------------

  • Thanks, George! Just what I was looking for.

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

You must be logged in to reply to this topic. Login to reply