I'm trying to ODBC connect to my TSM server using c#. When I try to create a data connection using a DSN (that I know works when I use it in excel queries) for my server I get an error message saying;



"input string was not in correct format"



Connection string ;

"Dsn=tsmsrv1;tcpaddr=tsmsrv1;tcpport=1500;fetchsiz e=50;uid=admin1;pwd=xxxxx"





Has anybody used the TSM ODBC in c# using visual studio.......Help!