Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm looking a command line tool or SQL command to export/import a table or complete database. Much like the imp and exp commands of Oracle databases.

Any suggestions?

share|improve this question
add comment

1 Answer

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.