how to add a sys.<viewname> in sybase as an view

Posts   
 
    
vairam2008
User
Posts: 86
Joined: 11-Mar-2008
# Posted on: 26-Mar-2008 18:34:11   

how to add a sys.<viewname> in sybase as an view. The catalogs doesn't show the sys, dbo schema's for me to select the tables or views.

One of the reason why we need is to get the current timestamp from the database. The easiest method is select current_timestamp from sys.dummy.

Is there an alternative other than creating a view or proc for this purpose without having to do any database change?

thanks

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39903
Joined: 17-Aug-2003
# Posted on: 26-Mar-2008 19:29:17   

None of those are imported as system views are ignored in almost all projects so we ignore them in the driver. (ASA or ASE?)

Frans Bouma | Lead developer LLBLGen Pro
vairam2008
User
Posts: 86
Joined: 11-Mar-2008
# Posted on: 26-Mar-2008 21:42:32   

asa 10.0.1.3619, it seems like the alternative is just to add a proc to get current datetime i guess. thanks

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39903
Joined: 17-Aug-2003
# Posted on: 26-Mar-2008 22:42:50   

I think that's best, as otherwise all the sys views are imported (if you enable it in the driver, the source is in the SDK) which is IMHO not that useful.

Frans Bouma | Lead developer LLBLGen Pro