title: SQL Server : login success but "The database [dbName] is not accessible. (ObjectExplorer)"
body: <p>I am using windows 8.1 and SQL Server 2012. </p>
  
  <p>I was using an OS account "Manoj" for accessing SQL SERVER with windows authentication.
  Recently I have deleted my user account "Manoj" of OS and created a new account with same name "Manoj". </p>
  
  <p>But the system took the new account as "Manoj_2". This change keeps me out from accessing the old databases, I have created. </p>
  
  <p>It says that </p>
  
  <blockquote>
    <p>The database [dbName] is not accessible. (ObjectExplorer)</p>
  </blockquote>
  
  <p>whenever I try to access any of the previous DBs I have created.</p>
  
  <p>I used to create new login in SQL Server for "Manoj_2", with default DB as "master". But still the problem persists.</p>
  
  <p>I cannot able to detach the DBs. I am unable to expand the DBs. </p>
  
  <p>Note: In OS, I have admin rights for the "Manoj" account.</p>
  
  <p>Please anybody tell me, what to do? either with OS or with SQL Server </p>