in reply to How to pull XML out of SSIS so I can study it with XPath

I haven't tried using Perl to connect to databases yet, so I'm not sure I could provide help with the DBI aspect. However, here's a work around that could get you going in the mean time.

Kind of convoluted, but it should get you there. If you really wanted to, you could get Perl to create the '.sql' file and then use something like a piped open to run the sqlcmd command and read in its output.

By the way, you'll need the SQL client tools installed. Of course if you have the management studio installed, I would imagine that you have the client tools installed too.