Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: SqlConnection Error Message



Permlink Replies: 0
Bob Gambler

Posts: 61
Registered: 8/23/10
SqlConnection Error Message
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 4, 2017 1:06 PM
Hi all,

how can i catch a possible error message when opening a connection. Something like the code below:

         Try
            myConnection.Open;
         Except
            WriteLog('Error Opening the connection, message: ' + errorMessage);
         End;
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02