[SQL] Accessing objects over db-borders

2005-02-04 Thread KÖPFERL Robert
Hi, Consider one postmaster that manages multiple databases (logical names) Is it possible (and how) to access a stored procedure or view/Table which resides in DB aaa if your DB-connection has currently the context on DB bbb? So: I login on db bbb as a user who has rights on both DBs (aaa,bbb).

Re: [despammed] [SQL] Accessing objects over db-borders

2005-02-04 Thread Andreas Kretschmer
am 04.02.2005, um 12:00:17 +0100 mailte KÖPFERL Robert folgendes: > Hi, > > Consider one postmaster that manages multiple databases (logical names) > > Is it possible (and how) to access a stored procedure or view/Table which > resides in DB aaa if your DB-connection has currently the context on

Re: [SQL] getting back autonumber just inserted

2005-02-04 Thread Richard_D_Levine
I don't work with M$ DBs, but saw that "autonumber" is an M$ concept. Purely for my own edification, how do you get the most resent value of an autonumber in M$? I was helping someone out who was using M$ stuff and was amazed that there was no currval function. Thanks, Rick

Re: [SQL] getting back autonumber just inserted

2005-02-04 Thread Magnus Hagander
> I don't work with M$ DBs, but saw that "autonumber" is an M$ concept. > Purely for my own edification, how do you get the most resent > value of an autonumber in M$? I was helping someone out who > was using M$ stuff and was amazed that there was no currval function. I beleive they call it ID

Re: [SQL] Determining Rank

2005-02-04 Thread Don Drake
Michael, That's an excellent solution, but on my table, the explain plan sucks and the query time is over 3 minutes when implemented. Is there a simple way to get a row_num without using a temporary sequence? Thanks for your help. -Don On Fri, 4 Feb 2005 14:02:20 +0900, Michael Glaesemann <[E

Re: [SQL] Determining Rank

2005-02-04 Thread PFC
Michael, That's an excellent solution, but on my table, the explain plan sucks and the query time is over 3 minutes when implemented. Is there a simple way to get a row_num without using a temporary sequence? Thanks for your help. -Don Make your query a set returning function which iterates over