dbTalk Databases Forums  

problem acessing user tables

comp.databases.sybase comp.databases.sybase


Discuss problem acessing user tables in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
xs65@hotmail.com
 
Posts: n/a

Default problem acessing user tables - 09-20-2004 , 10:22 AM






I work on a sybase 11.9.2 and have to generate a few Reports,
that are missing in Intershop.

I can connect to the server as 'sa'. All I can see are the
system-tables.
With the Browser 'Sybase Central' I can verify that the table
'customer' exists. It was created by dbo and the user InterShopOnline
has the right to select this table.

Now I've tried to select like
select * from customer
select * from dbo.customer
select * from InterShopOnline.customer

But the Server says: customer not found. Specify owner.objectname
or use sp_help to check whether the object exists.
I did that. sp_help lists just the system-tables.

What's the trick to get the user-tables?
please help.

Reply With Quote
  #2  
Old   
Michael Peppler
 
Posts: n/a

Default Re: problem acessing user tables - 09-20-2004 , 10:56 AM






On Mon, 20 Sep 2004 08:22:25 -0700, xs65 wrote:

Quote:
I work on a sybase 11.9.2 and have to generate a few Reports,
that are missing in Intershop.

I can connect to the server as 'sa'. All I can see are the
system-tables.
With the Browser 'Sybase Central' I can verify that the table
'customer' exists. It was created by dbo and the user InterShopOnline
has the right to select this table.

Now I've tried to select like
select * from customer
select * from dbo.customer
select * from InterShopOnline.customer

But the Server says: customer not found. Specify owner.objectname
or use sp_help to check whether the object exists.
I did that. sp_help lists just the system-tables.

What's the trick to get the user-tables?
You need to "use" the appropriate user database.

Right now when you log in as "sa" you're in the "master" database, which
should have no user tables.

Michael
--
Michael Peppler Data Migrations, Inc.
mpeppler (AT) peppler (DOT) org http://www.peppler.org/
Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short or
long term contract positions - http://www.peppler.org/resume.html



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.