I know there is a dll you can call to make the dsnname. I can't remember the name of it but I found itonce on microsofts website.about the other stuff I'm not sure.