| |

VerySource

 Forgot password?
 Register
Search
Author: cm200red

Java query SQLServer encountered a problem: the object name is invalid.

[Copy link]

0

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-7-31 19:45:01
| Show all posts
There is a problem with the capitalization and encoding!
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 Invalid IP Address

Post time: 2020-7-31 23:45:01
| Show all posts
In Java, take a look at the written string of the SQL statement.
Reply

Use magic Report

2

Threads

12

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

 Author| Post time: 2020-8-1 09:00:01
| Show all posts
Back tosunzoutao: I did choose the library soku built by myself, and I also queried the table userInfo in the soku library.
           Where is the problem with capitalization and encoding?
Reply

Use magic Report

2

Threads

12

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

 Author| Post time: 2020-8-1 09:45:01
| Show all posts
Back tochinaholy:
The writing of sql statement should be no problem. The problem now is that there is no problem when I query the system tables in all the databases, but when I check the user tables, an error occurs. I tried several databases in SQL Server and they were all the same.

I don't know if there is a problem with the SQL Server configuration, or the SQL Server Driver configuration, or other problems.
Reply

Use magic Report

0

Threads

2

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-1 18:45:01
| Show all posts
It should be a direct connection problem. You can set your SA in your SQL SERVER user, change the library under SA to the library you want to operate, and you can also set it if you want to set a password!
Reply

Use magic Report

0

Threads

2

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-1 19:00:01
| Show all posts
Because your sa is master by default
Reply

Use magic Report

0

Threads

2

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 United States

Post time: 2020-8-1 20:00:01
| Show all posts
No, I also encountered the same problem, and I tried a good program yesterday, and it reported the same error as the original owner when I ran it directly today!
Reply

Use magic Report

0

Threads

2

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-1 20:45:01
| Show all posts
The host can turn off the query analyzer, and then re-open the enterprise manager to try! I just reopened the enterprise manager once.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-10 15:30:01
| Show all posts
Agree tofire_fly
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-10 18:00:01
| Show all posts
The databasename and the name of the table are correct. Put the same SQL statement in MSSQL's query analyzer to see.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list