JDBC/ODBC user issues accessing SQL Server 2000 database

From: ITM (itm_at_manning.uk.com)
Date: 12/24/03


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



Relevant Pages

  • Re: MS Access DAO -> ADO.NET Migration
    ... William Vaughn ... Microsoft MVP ... Hitchhiker's Guide to Visual Studio and SQL Server ... My migration app works building a SSCE database file with imported data ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Cluster will not fail over.
    ... > As far as the TCP/IP issue goes, you had to rebuild the cluster and were ... > able to restore the master database. ... > a cluster installation you'll have to revisit. ... >> This worked bringing up the sql server in minimal mode. ...
    (microsoft.public.sqlserver.clustering)
  • Re: MS Access DAO -> ADO.NET Migration
    ... full SQL Server and I see the logic you explained in a multi user ... allow two users to access the same database file Read/Write at any given ... The book was a pleasure to read after the gibberish that Microsoft 'puts ... Hitchhiker's Guide to Visual Studio and SQL Server ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: MS Access DAO -> ADO.NET Migration
    ... For that it is much harder to handle the incremental identifier, ... database but although they have the data, they are not connected at the same ... The book was a pleasure to read after the gibberish that Microsoft 'puts ... SQL Server Management Studio is nowhere to be found on my ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Word 2003/Access2000/SQLSVR
    ... SQL server being where the data is held and this is accessed through a MS ... entire database and that may be say a record for Berkshire. ... "Peter Jamieson" wrote: ... replaced with the first record on the table in use. ...
    (microsoft.public.word.mailmerge.fields)