When I select all data from table/view person from database city I’ll do it like this:
select * from city..person
ASE then substitutes the * to all the columns and .. for .dbo. and the query will be this:
select name, age, sex from city.dbo.person
If I have another view person created by another user (lets call it boss), and I want to access that view I need to make a select like this:
select * from city.boss.person
Is there a way to make the city..person to be city.boss.person instead of city.dbo.person?
The naming convention in Sybase to identify a table/view is
[[database.]owner.]table_or_view_name, which means that thedatabaseandownerqualifiers are optional.If you don’t specify them,
databaseis expanded to the current database andowneris expanded to the current user.In your example,
city..personexpanded tocity.dbo.person, because you’re running underdbouser. The only way to have ASE expandingcity..persontocity.boss.person, is running the query under thebossuser.