Search notes:

SQL Server - sqlcmd: specyfing an sql file to be executed

When sqlcmd is invoked in cmd.exe, a file containing SQL commands can be specified with the -i option:
C:\> sqlcmd -S Hostname\InstanceName -i f:\project\some\script.sql
Other input options are -Q and -q.

Index