When you installed the SQL Client Tools (SEM, QA, etc), a utility named OSQL.EXE was also installed. This utility provides the functionality that you're looking for. Check the BOL. It's very well documented.
-Mike
>Hi everybody,
>
>I have .sql file, which contains some SQL server commands, such as DROP Table, Create Table, Insert, etc. I loaded it into Query Analyzer and run from there, but I want to understand, how to run it from the .bat file. Could you please give me a clue?
>
>Thanks in advance.