http://www.databasejournal.com/features/mssql/article.php/3654176/SQL-Server-2005-Command-Line-Tool-SQLCMD--Part-I.htm
C:\Program Files\Microsoft SQL Server\90\Tools\Binn
sqlcmd –S.\SQLEXPRESS –E -- E is windows auth
select @@version
seelct @@servername
sqlcmd –Smssql1.openhost.net.nz –Uuser –Psecret -- carefuly copying this from here.. I had to retype
sqlcmd –Smssql1.openhost.net.nz –Uuser –Psecret –i c:\dbtestbackup.sql –oc:\sqloutput.txt
Had a huge 800MB .SQL file. Notepad++ wouldn’t open after 10mins.
even gvim tried, but opened as junk text
Try SQL Server Import / Export now. This worked really well!