views:

51

answers:

1

In mysql, you can use mysqldump --xml to dump to XML.

How do you dump a SQL Server database? Preferably to XML.

+3  A: 

You could try the undocumented sp_MSforeachtable command.

EXEC sp_MSforeachtable 'select * from ? for xml auto'
Joe Stefanelli