PC Review


Reply
Thread Tools Rate Thread

How do I kick users off the database?

 
 
=?Utf-8?B?U2FuZHk=?=
Guest
Posts: n/a
 
      22nd Apr 2005
My Engineers constnatnly go off to lunch and don't log off so I can make
updates. How do I end their sessions?

thanks
Sandy
 
Reply With Quote
 
 
 
 
Rick B
Guest
Posts: n/a
 
      22nd Apr 2005
Did you try to search for an answer before posting a new thread? This is a
pretty common question. Most of the following 241 posts will help you with
this...

http://groups-beta.google.com/groups...ff+users&hl=en

--
Rick B



"Sandy" <(E-Mail Removed)> wrote in message
news:A57FF840-929F-4439-B23A-(E-Mail Removed)...
> My Engineers constnatnly go off to lunch and don't log off so I can make
> updates. How do I end their sessions?
>
> thanks
> Sandy



 
Reply With Quote
 
=?Utf-8?B?U2FuZHk=?=
Guest
Posts: n/a
 
      22nd Apr 2005
I searched using "kick users off" and did not get anything! funny what a word
flip can do - thansk!

"Rick B" wrote:

> Did you try to search for an answer before posting a new thread? This is a
> pretty common question. Most of the following 241 posts will help you with
> this...
>
> http://groups-beta.google.com/groups...ff+users&hl=en
>
> --
> Rick B
>
>
>
> "Sandy" <(E-Mail Removed)> wrote in message
> news:A57FF840-929F-4439-B23A-(E-Mail Removed)...
> > My Engineers constnatnly go off to lunch and don't log off so I can make
> > updates. How do I end their sessions?
> >
> > thanks
> > Sandy

>
>
>

 
Reply With Quote
 
Jeff Conrad
Guest
Posts: n/a
 
      22nd Apr 2005
"Sandy" wrote in message:
news:A57FF840-929F-4439-B23A-(E-Mail Removed)...

> My Engineers constnatnly go off to lunch and don't log off so I can make
> updates. How do I end their sessions?


Hi Sandy,

I don't have any personal experience with this task, but see if these links help.
Some of these links are indirectly related to your question, but should be of help.
Watch out for any possible line wrapping on these links

http://www.datastrat.com/Download2.html
Look for KickEmOff2K sample database.

http://www.rogersaccesslibrary.com/download2k.asp?SampleName='LogUsersOff2k.mdb'

http://www.rogersaccesslibrary.com/download2k.asp?SampleName='LogUsersOffNonUse2k.mdb'

ACC: How to Detect User Idle Time or Inactivity
http://support.microsoft.com/?id=128814

How to determine who is logged on to a database by using Microsoft Jet UserRoster in Access 2000
http://support.microsoft.com/?id=198755

How to determine who is logged on to a database by using Microsoft Jet UserRoster in Access 2002 or
in Access 2003
http://support.microsoft.com/?id=285822

http://www.candace-tripp.com/_pages/..._downloads.asp
Look for Detect and Logoff Idle Users

http://propertychampion.com/Develope...ns/Addins.html
Look for "Force User Out"

"Who's Logged In" Sample Database:
http://www.rogersaccesslibrary.com/misc/Whoson.97

http://www.fmsinc.com/products/Admin/index.asp

And some ready-made code courtesy of MVP Ken Snell
for determining who is accessing the BE file:

*******************************************
'* Subroutine WhoIsInTheDatabaseLockFile *
'*******************************************

Public Sub WhoIsInTheDatabaseLockFile()
' Written by Ken Snell (January 31, 2005)

' *** OUTPUTS A LIST OF USERS IN THE DATABASE:
' *** 1. COMPUTER NAME ("COMPUTER NAME")
' *** 2. LOGON NAME ("LOGIN_NAME")
' *** 3. WHETHER USER IS STILL CONNECTED TO THE DB (USER ID
' *** REMAINS IN .LDB FILE UNTIL LAST USER EXITS OR
' *** UNTIL THE SLOT IS CLAIMED BY ANOTHER USER)
' *** ("CONNECTED")
' *** 4. WHETHER USER'S CONNECTION TERMINATED UNDER NORMAL
' *** CIRCUMSTANCES ("SUSPECT_STATE")

' *** ADAPTED FROM MICROSOFT KNOWLEDGE BASE ARTICLE 285822

Dim cn As New ADODB.Connection
Dim dbs As DAO.Database
Dim rs As New ADODB.Recordset
Dim strNewDataSource As String, strCNString As String
Dim strCurrConnectString As String

' Replace the string in the next step with the name of a real
' linked table in the database
Const strLinkedTableName As String = "Name_of_A_Linked_Table"

Const strDatabaseString As String = "DATABASE="
Const strDataSourceText As String = "Data Source="

On Error GoTo Err_Msg

strCurrConnectString = CurrentProject.Connection
strCNString = Mid(strCurrConnectString, InStr(strCurrConnectString, _
strDataSourceText) + Len(strDataSourceText))
strCNString = Left(strCNString, InStr(strCNString, ";") - 1)

Set dbs = CurrentDb
strNewDataSource = dbs.TableDefs(strLinkedTableName).Connect
strNewDataSource = Mid(strNewDataSource, InStr(strNewDataSource, _
strDatabaseString) + Len(strDatabaseString))
Debug.Print "File containing the data tables: " & strNewDataSource

cn.ConnectionString = Replace(strCurrConnectString, strCNString, _
strNewDataSource, 1, 1, vbTextCompare)
cn.Open

' The user roster is exposed as a provider-specific schema rowset
' in the Jet 4.0 OLE DB provider. You have to use a GUID to
' reference the schema, as provider-specific schemas are not
' listed in ADO's type library for schema rowsets

Set rs = cn.OpenSchema(adSchemaProviderSpecific, _
, "{947bb102-5d43-11d1-bdbf-00c04fb92675}")

'Output the list of all users in the designated database.

Debug.Print rs.Fields(0).Name, "", rs.Fields(1).Name, _
"", rs.Fields(2).Name, rs.Fields(3).Name

While Not rs.EOF
Debug.Print rs.Fields(0), rs.Fields(1), _
rs.Fields(2), rs.Fields(3)
rs.MoveNext
Wend

Exit_Sub:
On Error Resume Next
rs.Close
Set rs = Nothing
cn.Close
Set cn = Nothing
dbs.Close
Set dbs = Nothing
Exit Sub

Err_Msg:
Debug.Print "Error occurred. Error number " & Err.Number & ": " &
Err.Description
Resume Exit_Sub

End Sub
'**************Code End*********************


Hope that helps,
--
Jeff Conrad
Access Junkie
Bend, Oregon


 
Reply With Quote
 
TC
Guest
Posts: n/a
 
      23rd Apr 2005
geerally, if a phrase search doesn't find what you want:

"kick users off"

you should try again with an all-words search:

kick users off

Then, the word order is ignored; it looks for posts wth all those words
in /any/ order. And google is very goot at moving the most relevant
ones, to the top of the list.

HTH,
TC

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
kick users off the be Pietro Microsoft Access 2 27th Oct 2008 01:50 PM
Kick other users out Beverly76 Microsoft Access Security 2 6th Aug 2008 12:59 PM
How do I kick users out of an XP Access database =?Utf-8?B?ZGVtb25q?= Microsoft Access 3 28th Sep 2007 01:12 AM
kick users off shared database =?Utf-8?B?Um9i?= Microsoft Access VBA Modules 3 31st Aug 2006 02:55 PM
Kick out users from the database =?Utf-8?B?S2FuZ2E=?= Microsoft Access 1 20th Sep 2005 01:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:24 AM.