title: How To Delete SQl Server database while it is "In Use" using C#?
body: <p>I am trying to delete sql server database. It gets deleted if it is not in use. If database is in use an exception occurred saying that <code>can not delete database while it is in use</code>.
  We can delete use database from management studio using option <code>Close existing connection</code>.
  But how can we do this using C# code?</p>