Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML new..Need help

Status
Not open for further replies.

glebreck

IS-IT--Management
Nov 20, 2002
34
US
I have gotten into some new software. All the websites I have created are dynamic and use SQL databases.

The software works with xml data, but as all my info is heald in a SQL server how do I get that data into xml format?

Is there a such thing as a xml page that whenever accessed gets the latest data from the sql server?
 
you can export the data from sql server using "for xml explicit"

example:

example:

select 1 as Tag,
null as Parent,
Foo as [Foo!1!Foo_e],
Bar as [Bar!2!Bar_e!element]

Union all

select 2 as Tag,
1 as Parent,
Foo as [Foo!1!Foo_e],
Bar as [Bar!2!Bar_e!element]

for xml explicit
 
Yep, or you could create you own XML programmatically.

Jon

"I don't regret this, but I both rue and lament it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top