Get XML schema from database schema (SQL Server 2008 diagram)

Get XML schema from database schema (SQL Server 2008 diagram)

I am using SQL Server 2008. Is this the way to do it in SQL Studio Enterprise Manager?

Instead of writing code or using an external tool

+2


source to share


1 answer


SQL Server Management Studio does not provide a way to do this.

Pasting the following into the code window gives you something close:



select * from INFORMATION_SCHEMA.COLUMNS for xml auto

      

Otherwise, the answer will be no, not without writing code or using an external tool.

0


source







All Articles