Yeah, you could code it in Visual Studio. You'll have to create your own Web Service and send a parameter to it that you run your SQL query on. It'll take a few hours, but shouldn't be too bad. There are examples out there of simple Web Services that you can use.
Another idea: install DBXL trial and get it working. Provide a nice testimonial (1-2 page write up) to us, and we'll give you a free BASIC copy. Offer expires on 9/1. :)