D
David Mulholland
I handle dozens of DBs for various offices in my organization. The biggest
hurdle I face is when I have to update data for these back-ends, someone
somewhere invariably has the DB open. I have a Master DB that I use to
automate all the updating I have to do and have incorporated the
"WhoIsInTheDatabaseLockFile" procedure to find the Machine Names of these
users (none of these DBs use user-level security - I inherited them as is). I
then have some code to open a cmd window and run the psloggedon.exe from
SysInternals (now part of Microsoft) to get the actual username of the person
I need to yell at.
All of this works great except the time and hassle it takes to open the
Module, hit Control-G to get the Immediate Window, run the procedure, copy
the machinename, go back to the form with the pslogged.exe code and running
that to get the actual username.
Is there a way to make this easier? Is it possible to call the procedure
from the main form and have it spit the results back into a memo(?) field on
that main form?
I've really only just begum playing with the Immediate window and don't know
what I can and can't do with it.
Any thoughts or suggestions would be appreciated. Thanks.
hurdle I face is when I have to update data for these back-ends, someone
somewhere invariably has the DB open. I have a Master DB that I use to
automate all the updating I have to do and have incorporated the
"WhoIsInTheDatabaseLockFile" procedure to find the Machine Names of these
users (none of these DBs use user-level security - I inherited them as is). I
then have some code to open a cmd window and run the psloggedon.exe from
SysInternals (now part of Microsoft) to get the actual username of the person
I need to yell at.
All of this works great except the time and hassle it takes to open the
Module, hit Control-G to get the Immediate Window, run the procedure, copy
the machinename, go back to the form with the pslogged.exe code and running
that to get the actual username.
Is there a way to make this easier? Is it possible to call the procedure
from the main form and have it spit the results back into a memo(?) field on
that main form?
I've really only just begum playing with the Immediate window and don't know
what I can and can't do with it.
Any thoughts or suggestions would be appreciated. Thanks.