Cannot query a table without adding a prefix
- From: "spremji via SQLMonster.com" <u4996@uwe>
- Date: Thu, 12 Feb 2009 17:49:22 GMT
Hello,
This may be a common dilemma but I just cannot seem to resolve it.
I'm using SQL 2005 by logging into SSMS via my own [DOMAIN\User] account,
which also exists in the SQL Logins and has server roles of 'Public' and
'sysadmin'.
Under 'User Mapping' tab, I do not have a check beside the database (that I'd
like to query without adding any prefix in the FROM clause like FROM testuser.
TABLE) and I have not assigned myself a 'db_owner' right on that database, as
yet because I'd like to start on a clean slate based on what you guys tell me
to do.
Under my database TEST2, Security > Users, I do not see my DOMAIN\User
account because I didn't make myself a dbo, as per paragraph above.
Currently, the TEST2 db has a db owner called 'testuser' which appears on the
db user as well as on the SQL Login.
When I login as testuser in SSMS and query a table, it works fine, However,
what I'd like to do is when I login as myself DOMAIN\User, I should be able
to query the same table without adding a prefix in the FROM testuser.TABLE.
So, the end goal I'd like is that both testuser and DOMAIN\User logins should
be able to query the same table without any prefixes.
Any way to do this in a concise step-by-step manner so that I don't mess it
up :)
Thanks in advance.
--
Message posted via http://www.sqlmonster.com
.
- Follow-Ups:
- Re: Cannot query a table without adding a prefix
- From: Erland Sommarskog
- Re: Cannot query a table without adding a prefix
- Prev by Date: KB960082 won't install on SQL 2000 on Windows 2000 Server
- Next by Date: Re: Cannot query a table without adding a prefix
- Previous by thread: KB960082 won't install on SQL 2000 on Windows 2000 Server
- Next by thread: Re: Cannot query a table without adding a prefix
- Index(es):
Relevant Pages
|