Re: logged in user can't see tables
From: pablo (a@b.com)
Date: 08/31/02
- Next message: Michael Vardnghus: "Re: New database user / denying access / view / odbc"
- Previous message: BP Margolin: "Re: New database user / denying access / view / odbc"
- In reply to: John Bell: "Re: logged in user can't see tables"
- Next in thread: John Bell: "Re: logged in user can't see tables"
- Reply: John Bell: "Re: logged in user can't see tables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "pablo" <a@b.com> Date: Sat, 31 Aug 2002 18:56:20 GMT
John,
I am sorry. You are absolutely right. It was very late and I was tired of
working on this for so long.
The error I get with the "SELECT * FROM employees" (without the table owner
name) is:
[Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name
'employees'.
I assume I am connecting to the correct database, as when I select with the
owner name prefixed, I get the expected data back (and there is no other
database with an employees table on my server).
The user has full permissions on all tables. I can read it fine when I
specify the the owner name. I just didn't expect I would HAVE to specify the
owner name, as I am connected as said owner.
I have quadruple-checked the DSN, and it specifies to connect with SQL
login, defaults to the correct database, and, as I said before, fails login
unless I specify the user that is the owner of the table.
One thing that I have noticed is that when I connect to the database using
SEM, it appears that, although I registered to connect as the same user
mentioned above, when I try and run queries without the owner prefix, I get
the same Invalid Object Name error message. It is as if I am logging in as
sa, even though I have logged in as 'paul' (which it the real username).
Thanks for your help.
-Paul
"John Bell" <jrm_bell@hotmail.com> wrote in message
news:sav0nug92m2psme0cosv0fnsn7nrf36rlg@4ax.com...
> You don't say what the error messages are!
>
> Are you connecting to the correct database?
>
> What permissions does the user has on the tables?
>
>
> John
>
> On Sat, 31 Aug 2002 04:34:09 GMT, "pablo" <a@b.com> wrote:
>
> >When I connect to my SQL 2000 database through a DSN in my .asp page
using
> >SQL authentication, I cannot see my tables without first prefixing them
with
> >the owner name. For example, my DSN is set to authenticate with a SQL
> >id/pass:
> >
> >DSN=mydsn;UID=owner;pwd=xxx
> >
> >when I try and select on a table owned by owner
> >
> >SELECT * FROM employees
> >
> >fails, and
> >
> >SELECT * FROM owner.employees
> >
> >works.
> >
> >I tried the DSN without the UID and PWD, and the login fails, so I am
sure I
> >am loggin in correctly.
> >
> >I would like not to have to specifiy the owner prefix. Any ideas?
> >
> >
>
>
- Next message: Michael Vardnghus: "Re: New database user / denying access / view / odbc"
- Previous message: BP Margolin: "Re: New database user / denying access / view / odbc"
- In reply to: John Bell: "Re: logged in user can't see tables"
- Next in thread: John Bell: "Re: logged in user can't see tables"
- Reply: John Bell: "Re: logged in user can't see tables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|