Sql-server – ODBC connection for testing Availability Group Listener

availability-groupssql-server-2012

I am having difficulty verifying my Availability Group Listener configuration. I would like to create an ODBC connection which points to the listener. When I configure the system DSN and try to test the connection at the end, I get timeout errors. However, when I change the server to point to the instance name instead of the listener name, the connection works. How can I test the listener using ODBC? What other method can I use to test the listener?

Note: I do not have access to an application to test client connectivity.

Best Answer

Converting my comment to answer :

You can use SQLCMD.exe -S <AG listener> -D <AG database> -E.

You may want to specify AGlistener,port_no to see if you can connect to the listener.