.net - How to kill localdb process after exit application -
I am developing winform application.
Below the connection string of my DB;
string _DatabaseFile = path. Gate directory name (application.ExecutablePath) + @ "\ database \ db.mdf"; _DatabaseConnectionParams = String.Format (@ "Data Source = (LocalBible) \ v11.0; Attach DBFilName = {0}; Integrated Security = True", _DatabaseFile);
Hiring works fine
But the SQL Server process continues to work after I quit my application.
Which approach is good to stop SQL Server?
Thank you in advance.
I do not think you need to do
< / P>
After the last connection to this process closes, it automatically closes a few minutes.
Comments
Post a Comment