Thanks for your time. I am new to SQL Server. I am using 32 bit odbc driver 17 and SQL server version is 2008. Using the same credentials, I am able to connect through SSMS but not through ODBC driver connection settings. I am not sure whats wrong on this one. Your help is highly appreciated.
Microsoft ODBC Driver for SQL Server Version 17.04.0001
Running connectivity tests...
Attempting connection
[Microsoft][ODBC Driver 17 for SQL Server]SSL Provider: The target principal name is incorrect.
[Microsoft][ODBC Driver 17 for SQL Server]Client unable to establish connection TESTS FAILED!