473,467 Members | 1,436 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

REPOST: Unique connection ID not name.

Hello,

When an Access program connects to a database, is there a unique connection
id? I've used the User Roster to check connections, but just wondering if
there was two machines with the same name, it would throw things off
somewhat.

Any help would be great.

Thanks!

Nov 13 '05 #1
8 1745
If there are 2 machines with the same name, that will throw your whole
network off...

"Jozef" <SP**********@telus.net> wrote in message
news:UNqTe.411997$5V4.263387@pd7tw3no...
Hello,

When an Access program connects to a database, is there a unique connection id? I've used the User Roster to check connections, but just wondering if
there was two machines with the same name, it would throw things off
somewhat.

Any help would be great.

Thanks!

Nov 13 '05 #2
That's why I'm asking if there's a unique connection ID. ;)

"MacDermott" <ma********@nospam.com> wrote in message
news:t1*****************@newsread3.news.atl.earthl ink.net...
If there are 2 machines with the same name, that will throw your whole
network off...

"Jozef" <SP**********@telus.net> wrote in message
news:UNqTe.411997$5V4.263387@pd7tw3no...
Hello,

When an Access program connects to a database, is there a unique

connection
id? I've used the User Roster to check connections, but just wondering
if
there was two machines with the same name, it would throw things off
somewhat.

Any help would be great.

Thanks!


Nov 13 '05 #3
Oops, sorry, I see what you mean now. It will only throw your network off
if you are using NetBui. All network protocols are TCP/IP and all static.
"MacDermott" <ma********@nospam.com> wrote in message
news:t1*****************@newsread3.news.atl.earthl ink.net...
If there are 2 machines with the same name, that will throw your whole
network off...

"Jozef" <SP**********@telus.net> wrote in message
news:UNqTe.411997$5V4.263387@pd7tw3no...
Hello,

When an Access program connects to a database, is there a unique

connection
id? I've used the User Roster to check connections, but just wondering
if
there was two machines with the same name, it would throw things off
somewhat.

Any help would be great.

Thanks!


Nov 13 '05 #4
Well, this is getting pretty far off Access, but we have a network which is
all WinXP, where NetBui isn't even natively installed, and it gets upset if
we add a machine with the same name as an existing one...
The main point of my post is to say that I don't think it's something
that should be addressed at the Access level.
"Jozef" <SP**********@telus.net> wrote in message
news:axrTe.122445$Hk.72772@pd7tw1no...
Oops, sorry, I see what you mean now. It will only throw your network off if you are using NetBui. All network protocols are TCP/IP and all static.
"MacDermott" <ma********@nospam.com> wrote in message
news:t1*****************@newsread3.news.atl.earthl ink.net...
If there are 2 machines with the same name, that will throw your whole
network off...

"Jozef" <SP**********@telus.net> wrote in message
news:UNqTe.411997$5V4.263387@pd7tw3no...
Hello,

When an Access program connects to a database, is there a unique

connection
id? I've used the User Roster to check connections, but just wondering
if
there was two machines with the same name, it would throw things off
somewhat.

Any help would be great.

Thanks!



Nov 13 '05 #5
"Jozef" <SP**********@telus.net> wrote in
news:UNqTe.411997$5V4.263387@pd7tw3no:
When an Access program connects to a database, is there a unique
connection id? I've used the User Roster to check connections,
but just wondering if there was two machines with the same name,
it would throw things off somewhat.


What kind of database? Jet? SQL Server? Something else?

What kind of connection? DAO? ADO? ODBC?

The answers to your question may depend on the answers to this
question, as well as to the techniques used in a specific connection
method (e.g., are you re-using a single connection or creating new
connections?).

Basically, your question is too vague to ba answerable unless the
person answer just happens to make exactly the right assumptions
about the context in which you're asking your question.

It might be better to describe the problem you're having that
prompts the question in the first place, rather than boiling the
question down to something so abstract that it can't really be
answered.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 13 '05 #6
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.
Either way, is there ANY way to connect to access and poll all the
connections to determine a unique id?

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.

Thanks!
"David W. Fenton" <dX********@bway.net.invalid> wrote in message
news:Xn**********************************@216.196. 97.142...
"Jozef" <SP**********@telus.net> wrote in
news:UNqTe.411997$5V4.263387@pd7tw3no:
When an Access program connects to a database, is there a unique
connection id? I've used the User Roster to check connections,
but just wondering if there was two machines with the same name,
it would throw things off somewhat.


What kind of database? Jet? SQL Server? Something else?

What kind of connection? DAO? ADO? ODBC?

The answers to your question may depend on the answers to this
question, as well as to the techniques used in a specific connection
method (e.g., are you re-using a single connection or creating new
connections?).

Basically, your question is too vague to ba answerable unless the
person answer just happens to make exactly the right assumptions
about the context in which you're asking your question.

It might be better to describe the problem you're having that
prompts the question in the first place, rather than boiling the
question down to something so abstract that it can't really be
answered.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc

Nov 13 '05 #7
"Jozef" <me@you.com> wrote in news:prqUe.164016$Hk.121675@pd7tw1no:
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. . . .
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.
. . . Either way, is there ANY way to connect to
access and poll all the connections to determine a unique id?
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.
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.


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
Nov 13 '05 #8
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" <dX********@bway.net.invalid> wrote in message
news:Xn**********************************@216.196. 97.142...
"Jozef" <me@you.com> wrote in news:prqUe.164016$Hk.121675@pd7tw1no:
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. . . .


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.
. . . Either way, is there ANY way to connect to
access and poll all the connections to determine a unique id?


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.
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.


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

Nov 13 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Aaron_TekRecycle.com | last post by:
Someone must have done this before?!? I have VBS code that will Enumerate all the Printers in the AD and Add the Printer Connection to the client... I'm just not a web developer so I need some...
7
by: A Ratcliffe | last post by:
As you might have gathered from the Subject, I've been experimenting with using VBScript classes in my ASP pages to tidy the script up. Generally things are going well. Since I come from a C++...
18
by: Neil | last post by:
I am using SQL 7 with an MS Access 2000 MDB front end, using bound forms with ODBC linked tables. In one form, the user needs to be able to check a box to select one or more records. This is...
10
by: BuddhaBuddy | last post by:
Platform is DB2/NT 7.2.9 The table was created like this: CREATE TABLE MYTEST ( MYTESTOID bigint not null primary key, FK_OTHEROID bigint not null references other, FK_ANOTHEROID bigint not...
2
by: Bill Holmes | last post by:
I have an A2003 front end (mdb) using ado to link the form/subforms to SQL server 2k tables and views. In SQL server, there is a view between 2 tables with a 1-1 relationship. I can edit records...
3
by: Jozef | last post by:
Hello, Is there any way to acquire a unique Machine ID, Hard Drive ID or Windows Installation ID? Im looking for a way to uniquely identify a physical installation and connection. The problem...
0
by: Doug | last post by:
This is a repost of an item that I still cannot resolve. I have 3 combo boxes. The first leads to the second to the third. When I have selected a value in the second box, the third box shows...
67
by: Scott M. | last post by:
Can anyone give me any ideas on why VS.NET 2003 running on XP Pro. (P4's with 1GB RAM) would take over 3 minutes to simply create a new ASP.NET Web Application on http://localhost? It seems that...
5
by: Adrian Parker | last post by:
I've got the standard SqlCacheDependency working just fine , ie. I've defined (and encrypted) the connectionStrings section in the web.config, and I've also defined an an sqlCacheDependency in the...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.