Okay, after several more frustrating hours with no success, I finally realized that I could bypass the entire issue by changing all of the dollar-quoting in the SQL script to apostrophe-quoting. It was a little tedious to change the entire script but it solved all of the quoting problems.
I'm kind of disappointed I didn't get any help from this list, but I'm posting my solution in case anybody else finds himself with the same problem.
Justin
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com