title: Change the Access Mode of a database
body: <p>My need is to make a access mode of a particular database to Single for data movement from one database to another database by using an application on which website is running so that at the time of no other user can modify that database.</p>
  
  <p>This all thing i like to do through C# Code i.e. before running Insert/Update queries I like to execute query for making the destination database not usable by any other user. If there is any connection available with that database then I like to close it.</p>