What does the Test Connection button execute in the Add Connection dialog box? RRS feed

  • Question

  • I want to know the coding (what testing) is executed when the Test Connection button is clicked in the Add Connection dialog box.  I want to implement the same functionality in a .Net application.

    Thursday, January 3, 2008 2:21 AM

All replies

  • I believe it opens connection to see if it is able to connect to specified database. Basically you need to prepare connection string and call Open method of the connection. If it does not fail than connection string is correct.


    Thursday, January 3, 2008 11:18 AM