I create a table "T1" as user "A" , (in SYBASE )
when I use the DatabaseMetaData.getTables ( null,dbmd.getUserName(),
null,null )
( and logged in as user A ) It returns a list of tables User "A"
created; or should I say own
The question is, HOW ( in Sybase ) do I allow another user ( or grant
the privilige ) to other users ( or the general public)
to see this table through JDBC connection wtihout having to preceed the
the table name with the owners id
for Example :
In ORACLE you can create a public synonym; this would allow all users to
see the table
e.g CREATE PUBLIC SYNONYM T1 ON A.T!
In DB2 you can create an alias; this again would allow all users to see
the table
CREATE ALIAS T1 FOR A.T1
Any help in this matter would be gratly appreciated
Scott
Same sort of thing is true for stored procedures created by
the dbo.
For maximum portability, you would want to write your queries
with fully qualified <owner>.<table> whenever you know who
owns the tables, or <database>.<schema>.<table> in the most
general case.
In your example, if user A had granted select to user B or to PUBLIC,
then user B could select from A.T1 - which you already know.
That is all I know,
dave