Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Tip of the Day
Language: Enterprise
Expertise: Beginner
Oct 8, 2001



Application Security Testing: An Integral Part of DevOps

Retrieve SQL Server Results in XML through an HTTP Connection

Beginning with SQL Server 2000, Microsoft added support to retrieve data from SQL Server databases by using an URL address. To do this, you must create a virtual root, that is, a virtual address that your Website visitors can see. To do that, use the 'Configure SQL XML Support in IIS' utility that comes with the SQL Server 2000 installation. Then, you can send queries by URL.


'http://myWebServerName/myVirtualRootName?sql=SELECT+FirstName+FROM+Employ ees'

The results are in XML format, so there's no ASP needed. The '+' signs exist to substitute the normal spaces that, as you know, are forbidden from usage in URL addresses. Enjoy!
Jorge Silva
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date