title: Use a specific database and table in MSSQL (Visual Studio)
body: <p>I am working in Visual Studio and using the SQL manager built into the studio. Now I am connecting to several databases and I would very much like to be able to save and open my SQL queries and still have them access the correct database and table.</p>
  
  <p>So:</p>
  
  <pre><code>Database servers:
  db.company.com
      databasenumber1
      databasenumber2
      databasenumber3
  db2.company.com
      databasenumber1
      databasenumber2
      databasenumber3
  db3.company.com
      databasenumber1
      databasenumber2
      databasenumber3
  </code></pre>
  
  <p>Now I wish to write an sql query that does something simple, lets say:</p>
  
  <pre><code>select * from users where userid = '12';
  </code></pre>
  
  <p>However I want to select this from <code>database server db2</code> and from <code>database databasenumber3</code>.</p>
  
  <p>How do I write that in a <code>use</code> statement? Or is there something other than "use"??</p>