0

I use VS 2012 and LocalDB for storing data.

This is my Solution Explorer:

enter image description here

I have one simple table in TestDb. Here is structure of that table:

enter image description here

I run the program and add some records to the table. And I use BindingNavigator and DataGridView for adding and displaying data.

enter image description here

But there are some problems.

  1. When program starts it connects to the database very very slowly.
  2. When I press Save button on the navigator it does not save records to the database table.

enter image description here

So, what are the problems? Why is connecting so slow and why does it not save records into the database?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
namco
  • 6,208
  • 20
  • 59
  • 83

1 Answers1

0

It should be about your DNS resolver. if localhost is missing from your reslove configuration. Windows has an analagous file somewhere in the System directory.

You can try changing "localhost" to "127.0.0.1" in db connction parameters. It will probably work!

Burk
  • 2,969
  • 1
  • 23
  • 24