i found following creates dsn thorugh command line but if i want to send username ,password i am not gettngs what options i need to use
odbcconf.exe /a {CONFIGSYSDSN "SQL Server" "DSN=asda|Descr iption=asdsa|SE RVER=localhost| Database=asda"}
odbcconf.exe /a {CONFIGSYSDSN "SQL Server" "DSN=asda|Descr iption=asdsa|SE RVER=localhost| Database=asda"}