Hi Karan,
The generic error 17 is due to the "Server does not exist or access denied." Please ensure when you are configuring the ODBC you are using correct Driver, Server Name, and user ( which should have the access to it ).
Check for reference : http://scn.sap.com/docs/DOC-62624
Regards,
Mahak