JDBC/ODBC user issues accessing SQL Server 2000 database
From: ITM (itm_at_manning.uk.com)
Date: 12/24/03
- Next message: Peter Connolly: "Re: Bulk Updates in Oracle from XML File"
- Previous message: Kiran Dalvi: "Bulk Updates in Oracle from XML File"
- Next in thread: Sampsa Sohlman: "Re: JDBC/ODBC user issues accessing SQL Server 2000 database"
- Reply: Sampsa Sohlman: "Re: JDBC/ODBC user issues accessing SQL Server 2000 database"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 24 Dec 2003 13:29:26 +0000
I have a SQL Server 2000 database which has been restored from a
backup. The restored database contained a user called "X", which is
the owner of all of the tables in the database. When I try to execute
an SQL SELECT against any of the tables in the database (using the
JDBC/ODBC bridge) I get an "invalid object name" error - it seems to
be requiring me to prefix the table names with "X.", even though the
ODBC data source has been set up with the user "X".
If I use MS-Access to link to the database using the same ODBC data
source I can see the tables - each is listed with an X. prefix.
If I connect from the SQL Server command line using the X user/login I
can refer to tables without using the X prexix on table names.
The only thing that may have complicated things is that I used
sp_change_users_login to associate the X user with the X login.
Can anyone tell me how I can avoid having to prexix my table names
with the user name, when I should be connecting with that user name?
TIA for any help,
Isabel
- Next message: Peter Connolly: "Re: Bulk Updates in Oracle from XML File"
- Previous message: Kiran Dalvi: "Bulk Updates in Oracle from XML File"
- Next in thread: Sampsa Sohlman: "Re: JDBC/ODBC user issues accessing SQL Server 2000 database"
- Reply: Sampsa Sohlman: "Re: JDBC/ODBC user issues accessing SQL Server 2000 database"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|