Re: Qery Analyser - Table Access



Hi,

Table name is created as [Jim.Customers].

So you have to use :-

Select * from jim.[Jim.Customers]

Thanks
Hari
SQL Server MVP






"Jim Bunton" <jBunton@xxxxxxxxxxxxxxxx> wrote in message
news:4pw1f.77602$iW5.66654@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Sql Server 2000, Win 2000
>
> Problem accessing tables in SQL Query Analyser:-
> ?? why can't I access the database connected as Jim ??
>
> Created Database [SolutionsNet] - Owner Jim
> Created Table [Jim.Customers] Owner Jim
>
> Data base access Jim 'permit'
> Table - Companies - permissions Jim > Select . . . [the lot]
> Jim Permissions - Table Companies > Select . . . [the lot]
> Jim - permit in database role > public, db_owners . . [the lot]
>
> BUT
>
> SQL Query Analyser
> Connect as Jim
>
> use SolutionsNet
> go
> select * from jim.companies
> go
>
> Server: Msg 229, Level 14, State 5, Line 1
> SELECT permission denied on object 'Companies', database 'SolutionsNet',
> owner 'Jim'.
> [same if table is just 'companies' withot the prefix]
>
> HOWEVER
> Connect as sa
>
> use SolutionsNet
> go
> select * from jim.companies
> go
>
> Fine:- displays the empty table!
>
> ?? why can't I access the data connected as Jim ??
>
>
> Jim Bunton
>
> 283 968
>
>


.



Relevant Pages

  • Re: Code for ADO.NET: The Complete Reference
    ... It involves SQL Server 2000 and ... connect to a Database in SQL will not run and get the error. ... Jim ... website BUT when I go to the Osborne website and enter this ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Orderby on multiple fields in a list
    ... Year Surname TotalCost Volume ... 2003 Jim $14,377.41 61377 ... 2004 Andy $119,609.07 798193 ... Business Intelligence and not writing a query for SQL Server? ...
    (microsoft.public.sqlserver.programming)
  • Re: Exclude Identity Columns to copy rows?
    ... generate the column list if you use Query Analyzer for SQL Server 2000. ... open up the object browser with F8, find the table you want to insert into, ... thing you have to do then is remove the identity column from the list. ... "Jim M" wrote in message ...
    (microsoft.public.sqlserver.programming)
  • Re: Can we encrypt the whole DataBase in Sql Server 2005.
    ... Thanks Jim, for your advice. ... Atleast I am now sure that SQL Server 2005 ... does not support DataBase Level Encrytion. ... available is to encrypt columns in the table. ...
    (microsoft.public.sqlserver.security)
  • Re: Qery Analyser - Table Access
    ... why can't I access the database connected as Jim ?? ... Data base access Jim 'permit' ... SQL Query Analyser ... SELECT permission denied on object 'Companies', database 'SolutionsNet', owner 'Jim'. ...
    (microsoft.public.sqlserver.tools)

Quantcast