Invalid object name for accessing SQL Server using Java

Source: Internet
Author: User

 

Java. SQL. sqlexception: [Microsoft] [sqlserver 2000 driver for JDBC] [sqlserver] Object Name 'xxx'Invalid

 

Solution:

 

  1. The user has logged in, but cannot access the data table in it. The cause of this problem is that the SA user is a system user, although it can log in to the database, however, the storemanager database does not have the access permission of this user. Therefore, we create a new user share for this database. The creation process is as follows: select "Duplicate User" in the storemanager database> "new user"> select the name (this step has two key points. 1. Select SQL for identity authentication. The default database is storemanager) -> Create a new teaching share. Change the program and change the user login name and password.

  2. All statements are written as follows: Select * from database name. DBO. Table name.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.