Topic: 救命啊!(能连接SQL Server数据库,但不能使用SQL)

  Print this page

1.救命啊!(能连接SQL Server数据库,但不能使用SQL) Copy to clipboard
Posted by: fhtan
Posted on: 2005-12-13 21:10

java程序连接SQL Server数据库成功,但就是不能进行SQL语言操作。在JBulider中也是啊,能连接数据库,就是不能使用SQL语言。也查不到数据库的表。错误显示不存在改表。请各位高手救救我啊。


请尽量使用准确的文字描述作为标题
若新帖再無恰当标题,可能会被刪除

原來的标题:
救命啊!!!大侠

2.Re:救命啊!(能连接SQL Server数据库,但不能使用SQL) [Re: fhtan] Copy to clipboard
Posted by: why
Posted on: 2005-12-14 19:06

> 错误显示不存在"該"表
Could the table be owned by a user other than the account you use to connect via JDBC.
Log on SQL server's Query Analyzer (or just isql) with the account for JDBC access, and see whether you can access that table.

Please show us the database schema (or ddl of that particular table) and your Java/SQL code.

3.Re:救命啊!(能连接SQL Server数据库,但不能使用SQL) [Re: fhtan] Copy to clipboard
Posted by: 九佰
Posted on: 2005-12-15 09:38

没错!

把你的环境和表结构、查询的java类和sql语句拿出来才好帮你

4.Re:救命啊!(能连接SQL Server数据库,但不能使用SQL) [Re: fhtan] Copy to clipboard
Posted by: fhtan
Posted on: 2005-12-22 11:50

非常 感谢二位大哥.问题解决了.是我在设置数据源的时候出了点小问题.没有把数据库的名字选择.使用了默认的.


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923