title: java.sql.SQLException [Microsoft] [ODBC SQL Server Driver] [SQL Server] Invalid object name 'table name'
body: <p>When I connect Java to Mssql using JDBC ODBC driver</p>
  
  <pre><code>try 
  {
      ps=conn.prepareStatement("UPDATE products SET stock=? WHERE id=?");
  
      ps.setInt(1, prods.getStock());
      ps.setInt(2, prods.getId());
  
      int b = ps.executeUpdate();
  
      if(b!=0)
      {
          System.out.println("success");
      }
      else
      {
          System.out.println("Fail");
      } 
  }
  catch(SQLException e)
  {
      System.out.println(e);
  }
  </code></pre>
  
  <p>This catch block rises this exception </p>
  
  <pre><code>java.sql.SQLException [Microsoft] [ODBC SQL Server Driver]
    [SQL Server] Invalid object name 'products'
  </code></pre>
  
  <p>I am working on this part from last 2 days. How I will solve this exception?</p>