Is there a way to execute a SQL query from command line. For instance I use:
heidisql.exe -d=mysession "c:\test.sql"
And it opens heidisql and opens the query in the query tab but I want it to execute the query as well. Even better yet, if it could execute the query and then close heidisql that would be awesome.
Any help is much appreciated.