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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML over HTTP in SQL

Status
Not open for further replies.

qsac

Programmer
Jan 22, 2002
242
US
i basically want to store the contents of a XML file to tsql variable.

so

declare @strXML varchar(8000)
set @strXML =
The above is what i want to do. I know the above syntax is incorrect, but does anyone know how/if this can be accomplished in TSQL?

Thank You,
Q
 
Native T-SQL (AFAIK in 2K) can't do this. You have to write VB to use the XMLHTTP object and retrieve the contents of the site. Create a DLL or EXE and call it with xp_cmdshell.



Phil Hegedusich
Senior Web Developer
IIMAK
-----------
A priest, a lawyer, and a rabbi walk into a bar. The bartender looks up and says "What is this, a joke?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top