-2

I am developing winform application.

Connection string of my db as below;

string _DatabaseFile = Path.GetDirectoryName(Application.ExecutablePath) + @"\Database\db.mdf";
                _DatabaseConnectionParams = String.Format(@"Data Source=(LocalDB)\v11.0;AttachDbFilename={0};Integrated Security=True", _DatabaseFile);

Everyting works good.

But SQL Server process continues to work after exit my application.

Which approach is good to stop SQL Server?

Thank you in advance.

Kerberos
  • 1,228
  • 6
  • 24
  • 48

1 Answers1

2

I don't think you need to do anything.

It shuts down automatically a few minutes after the last connection to the process is closed.

scartag
  • 17,548
  • 3
  • 48
  • 52