Steve Michel's Radio Weblog
Things I'm interested in.












Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.
 

 

Wednesday, March 06, 2002
 

SQL Server & Radio: OK, I figured out enough of SQL Server 2000's XML and also XSL to be able to write a macro in Radio which publishes the results of a database query. Here's a table of the last 10 books I've read, pulled from my database

HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Sun, 07 Apr 2002 10:02:59 GMT Content-type: text/html Expires: -1;
Title
Tishomingo Blues
Dig Infinity! The Life and Art of Lord Buckley
Back to the Miracle Factory: Rock Etc. 1990's
Basket Case
The Dylan Companion
Miami Blues
The Deadline: A Novel about Project Management
Vitals
The Botany of Desire: A Plant's-Eye View of the World
Joe College

Pulling the header stuff off the top shouldn't be too hard; I just need to do it. From the Radio end, this was pretty easy, I just use tcp.httpClient() to call a SQL Server Virutal directory, with the name of a template file and an XSL stylesheet in the URL. It looks something like this:

http://burntfish/books_db/template/recent.xml?xsl=templates/recent_w_last.xsl

Of course this only works, for now inside my own firewall. And of course, I'm using stuff built in to IIS and SQL Server, so Radio isn't necessarily needed. Later I'll use Radio to turn this into a Web Service, which I think will be a lot easier than using SQL Server and .NET.


9:05:47 PM    

Here's a fascinating page on Scientology. It's worth re-reading Carl Sagan's Baloney Detection Kit from time to time.


9:34:27 AM    



Click here to visit the Radio UserLand website. © Copyright 2002 Steve Michel.
Last update: 3/6/2002; 10:34:27 AM.
This theme is based on the SoundWaves (blue) Manila theme.
March 2002
Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Feb   Apr