[Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]对象名 'XXX' 无效
2014-06-26 15:28
573 查看
是sa用户为系统用户,它虽然能够登陆数据库,但是数据库里边的权限都是dbo的,,应该在你连接的数据库添加一个用户,权限为public和db_owner
步骤:
1,打开安全性->登录
![](https://img-blog.csdn.net/20140626152412578?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWl1c2hpc29mdHdhcmU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
2,新建登录,常规选项卡,填写下面三项
![](https://img-blog.csdn.net/20140626152534656?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWl1c2hpc29mdHdhcmU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
3,数据库访问 选项卡
勾选 数据库 和 db_owner
![](https://img-blog.csdn.net/20140626152557875?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWl1c2hpc29mdHdhcmU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
连接sql2000 数据库:
转载自:http://www.blogjava.net/fl1429/archive/2009/06/02/279621.html
是sa用户为系统用户,它虽然能够登陆数据库,但是数据库里边的权限都是dbo的,,应该在你连接的数据库添加一个用户,权限为public和db_owner
步骤:
1,打开安全性->登录
2,新建登录,常规选项卡,填写下面三项
3,数据库访问 选项卡
勾选 数据库 和 db_owner
连接sql2000 数据库:
private String url = "jdbc:microsoft:sqlserver://localhost:1433; DatabaseName=award"; private String user = "test"; private String password = "riskfitfeng";
转载自:http://www.blogjava.net/fl1429/archive/2009/06/02/279621.html
相关文章推荐
- java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]对象名 ‘xxx’ 无效
- java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]对象名 ‘xxx’ 无效
- java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]对象名 'xxx' 无效
- java.sql.SQLException [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]对象名'*'无效
- java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]对象名 ‘xxx’ 无
- java里连接sqlserver对象名无效的解决方法 java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]对象名 无效
- java.sql.sqlexception microsoft sqlserver 2000 driver for jdbc sqlserver 对象名 无效。
- java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket
- JDBC规范-java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]The specified SQL type is not supported by this driver
- 关于javax.servlet.ServletException: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket. 错
- 错误解决SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]
- [Microsoft][SQLServer 2000 Driver for JDBC]Connection reset问题
- java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Underlying input stream returned zero bytes
- java.sql.SQLException: [ Microsoft ][SQLServer 2000 Driver for JDBC ] Error establishing socket.
- java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
- [Microsoft][SQLServer 2000 Driver for JDBC]Connection reset by peer: socket write error
- [Microsoft][SQLServer 2000 Driver for JDBC]ResultSet can not re-read row data for column 1.
- [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket 解决方法
- [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket 错误
- 解决方案:[Microsoft][SQL Server 2000 Driver for JDBC][SQLServer]用户 'sa' 登录失败