Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 Create Xml File

Author  Topic 

mrdotnetid
Starting Member

8 Posts

Posted - 2007-01-28 : 21:27:09
Hello team,

How to create xml file that's contain all data in one database.
I Need script sql for it.



Thx

Rudianto

sql_er
Constraint Violating Yak Guru

267 Posts

Posted - 2007-01-30 : 16:18:29
Per table you can do something like the following:

SELECT T.C1, T.C2
FROM T
FOR XML AUTO, ELEMENTS

You can then copy and paste or right click and save the output.

There must be another, more global [i.e. for database] method though ...
Go to Top of Page
   

- Advertisement -