Pass SQL as parameter and return database as xml in asp.net
This asp.net script will connect to your SQL 2008/2012 database and return any SQL command you have sent in the querystring of the browser as XML.
So it can be called by:
http://example.com/export.aspx?sql=SELECT%20TOP%20100%20[sch_id]%20,[sch_name]%20FROM%20[teachers].[dbo].[sch_details]%20ORDER%20BY%20[sch_name]%20desc
Clearly this is not for production environments, but it helped us when we wanted to populate our expression blend combo dropdown list.
Kbytes Home | Privacy Policy | Contact us | Testing Area
© 2004 - 2024 1 Oak Hill Grove Surbiton Surrey KT6 6DS Phone: +44(020) 8123 1321