SQL is SQL (with slight Syntax differences between the versions), so I recommend you go find an MS SQL manual and dig in. I mean, if you wrote your script in ASP before, you are well on your way. You have an understanding of the syntax, so dig into the manual for the right methods of applying it, and you'll be fine.