Microsoft SQL alternative for Oracle's Imp and Exp command
Solution 1:
Have a look at the bcp utility (bulk copy).
It only does a table at a time, but here is a script that will do the entire thing.
As for a single command to export an entire database, it appears from this StackOverflow question that it is not possible.