Hi David,
Thanks. I think I'll likely fly with just the user name and machine name.
The reason I wanted to look at unique connections is that I'd like ot be
able to log connections to the database, and mark when those connections
were terminated. If a user has two or three connections to the database, it
would be the same user name and machine name, so if I cleared the connection
when one instance of the database was shut down, it would clear all the
connections (even though others would still be connected) unless I could
determine a unique connection id somehow. I can come up with a work around,
I was just hoping there was a cleaner, easier way.
Thanks again!
"David W. Fenton" <dXXXfenton@bway.net.invalid> wrote in message
news:Xns96CDCA04C9F96dfentonbwaynetinvali@216.196. 97.142...[color=blue]
> "Jozef" <me@you.com> wrote in news:prqUe.164016$Hk.121675@pd7tw1no:
>[color=green]
>> Connecting to an Access database using the User Roster, which is I
>> belive the only way to view connections to the database from
>> within Access or VB. . . .[/color]
>
> No, it's not the only way to do it. It's the most convenient, but
> it's an ADO feature, and before ADO existed in Access, we had the
> LDBUSR.DLL for figuring out who was connected.
>[color=green]
>> . . . Either way, is there ANY way to connect to
>> access and poll all the connections to determine a unique id?[/color]
>
> Not so far as I know. I haven't looked at this for a long time, but
> if I remember correctly you only get machine name and username, and
> one listing for that from each connection each user has open.
>
> Now, perhaps workstation+domain logon name is sufficient for your
> purposes, but I believe that's all you're ever going to get.
>[color=green]
>> No big deal, I will probably just roll the dice and use the User
>> Roster. If you do know of any way to extract a unique connection
>> id from a database connection (PID maybe?) I'd love to hear it.[/color]
>
> I don't know that Jet records such a thing in the LDB file, and I
> know that I've never encountered any interface for getting such
> information out of an LDB, so if the information does exist, so far
> as I know, there's no interface defined for it.
>
> The only alternative would be binary examination of the LDB file to
> see what you can learn from that, but I'm not interested in that
> kind of thing.
>
> Why do you need more information than workstation+username?
>
> --
> David W. Fenton
http://www.bway.net/~dfenton
> dfenton at bway dot net
http://www.bway.net/~dfassoc[/color]