In the application I add a connection to MS SQL through the "Data Source". I run the application and it shows the data from the database.

And where is the connection code itself? Is he prescribed somewhere? I want to handle connection errors, but I can not find where to do it.

  • one
    Where the exception is sprinkled, process it there. - Monk
  • As an option ... I 'll try ... - MaximK

1 answer 1

Connection occurs at the stage of filling with TableAdapter data. Fill Method Deeper there is no sense to climb. This is the designer file of your DataSet that is generated automatically.