473,394 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Problems migrating to XP

Hi Everyone, hope you can help.

Our company has recently migrated from NT and Access 97 to XP and Access
2003 and in the process a number of problems have surfaced.

The team I work in are responsible for managing a number of databases, some
of which are updated on a desktop machine and then copied to the networked
drives.

We overwrite the existing database with the new updated version using the
scheduled task manager to ensure no-one is in the database (i.e. midnight in
a 9-5 office).

The problem arrises if for some reason we want to overwrite the database
during the day.

In the days of NT we would firstly put a "quit" command in the autoexec to
stop anyone else getting in the database and then go about getting the
remaining users out. To do this we would look at the machine ID's in the
".ldb" file using either notepad or ldb viewer, and then use a net-send to
the machine to request that the user exited the database. This worked well
and usually we could perform the entire task in less than 20 minutes.

Now that we have migrated everything has changed. Firstly we can't put the
quit command in the database as you can't change the design of an Access
2000+ database if there are other users in it. This means that we have to
try to get the users out even as new users are logging in. To make matters
worse, for reasons I fail to understand net-send no longer works on the XP
machines. This means that the only way of getting people out is to enter
the database and look at our login table to find out who is using the
relevant machine ID's and subsequently look up their phone number to request
that they exit the database. As you can imagine this is an extremely time
consuming process. It is further complicated as the database occasionally
gets corrupted stopping anyone further getting in but not kicking the
existing users out. In this instance we can't even refer to the login table
to find the names leaving us completely helpless.

I have tried creating timer events which check an external linked table at a
set interval to see whether to log off which seems to work fine in a test
environment but makes the database far more unstable when used on the
network.....I can post the code I used if you wish.

If anyone has any suggestions on how we can make any part of this process
easier in XP I would be extremely grateful.

Thankyou,

John Ortt.

Nov 13 '05 #1
4 1697
I have a system in place where I load a form named usysLogoutTimer which is loaded
at app startup. It polls a server table with a Yes/No field for Logout attribute. When
true, the countdown form, usysLogoutCountdown, displays itself and starts a 5 minute
countdown. That way, I can log out all users, even if it's after hours and they've gone home.

I put an image of the form at my site ...
http://amazecreations.com/datafast/countdown.jpg

And the code for both forms is down here ...

' usysLogoutTimer
Option Compare Database
Option Explicit

Private Sub cmdOK_Click()
On Error GoTo Err_Handler
Me.Visible = False
Exit_Here:
Exit Sub
Err_Handler:
LogErrorToTable Err.Number, Err.Description, "Form_usysLogoutTimer", "cmdOK_Click", Erl
Resume Exit_Here
End Sub

Private Sub Form_Timer()
On Error GoTo Err_Handler
Dim fLogout As Boolean

fLogout = DLookup("[LogOutAllUsers]", "[usysVersionServer]")
If fLogout = True Then
Me.TimerInterval = 60000
DoCmd.OpenForm "usysLogoutStatus"
Else
Me.TimerInterval = 1800000
If IsLoaded("usysLogoutStatus") Then
DoCmd.Close acForm, "usysLogoutStatus"
End If
End If

Exit_Here:
Exit Sub
Err_Handler:
'LogErrorToTable Err.Number, Err.Description, "Form_usysLogoutTimer", "Form_Timer", Erl
Resume Exit_Here
End Sub

' usysLogoutCountdown
Private Sub cmdOK_Click()
On Error GoTo Err_Handler
Me.Visible = False
Exit_Here:
Exit Sub
Err_Handler:
'LogErrorToTable Err.Number, Err.Description, "Form_usysLogoutCountdown", "cmdOK_Click", Erl
Resume Exit_Here
End Sub

Private Sub Form_Open(iCancel As Integer)
On Error GoTo Err_Handler

mdat_StartCountdownTime = DateAdd("n", 3, Now())
Me!txtMinsecs = " 3 minutes and 0 seconds "

Exit_Here:
Exit Sub
Err_Handler:
LogErrorToTable Err.Number, Err.Description, "Form_usysLogoutCountdown", "Form_Open", Erl
Resume Exit_Here
End Sub

Private Sub Form_Timer()
On Error GoTo Err_Handler

Dim intIMins As Integer
Dim intISecs As Integer

intIMins = DateDiff("s", Now(), mdat_StartCountdownTime) \ 60
intISecs = DateDiff("s", Now(), DateAdd("n", (intIMins * -1), mdat_StartCountdownTime))

If intIMins = 2 And intISecs = 0 Then
Me.Visible = True
End If
If intIMins = 1 And intISecs = 0 Then
Me.Visible = True
End If
If intIMins = 0 And intISecs = 20 Then
Me.Visible = True
End If

If intIMins <= 0 And intISecs <= 0 Then
DoCmd.Quit
End If

Me!txtMinsecs = " " & intIMins & " minutes and " & intISecs & " seconds "

Exit_Here:
Exit Sub
Err_Handler:
LogErrorToTable Err.Number, Err.Description, "Form_usysLogoutCountdown", "Form_Timer", Erl
Resume Exit_Here
End Sub
--

Danny J. Lesandrini
dl*********@hotmail.com
http://amazecreations.com/datafast/

"John Ortt" <jo******@noemailsuppliedasdontwantspam.com> wrote in message news:43**********@glkas0286.greenlnk.net...
Hi Everyone, hope you can help.

Our company has recently migrated from NT and Access 97 to XP and Access 2003 and in the process a number of problems
have surfaced.

The team I work in are responsible for managing a number of databases, some of which are updated on a desktop machine
and then copied to the networked drives.

We overwrite the existing database with the new updated version using the scheduled task manager to ensure no-one is
in the database (i.e. midnight in a 9-5 office).

The problem arrises if for some reason we want to overwrite the database during the day.

In the days of NT we would firstly put a "quit" command in the autoexec to stop anyone else getting in the database
and then go about getting the remaining users out. To do this we would look at the machine ID's in the ".ldb" file
using either notepad or ldb viewer, and then use a net-send to the machine to request that the user exited the
database. This worked well and usually we could perform the entire task in less than 20 minutes.

Now that we have migrated everything has changed. Firstly we can't put the quit command in the database as you can't
change the design of an Access 2000+ database if there are other users in it. This means that we have to try to get
the users out even as new users are logging in. To make matters worse, for reasons I fail to understand net-send no
longer works on the XP machines. This means that the only way of getting people out is to enter the database and look
at our login table to find out who is using the relevant machine ID's and subsequently look up their phone number to
request that they exit the database. As you can imagine this is an extremely time consuming process. It is further
complicated as the database occasionally gets corrupted stopping anyone further getting in but not kicking the
existing users out. In this instance we can't even refer to the login table to find the names leaving us completely
helpless.

I have tried creating timer events which check an external linked table at a set interval to see whether to log off
which seems to work fine in a test environment but makes the database far more unstable when used on the network.....I
can post the code I used if you wish.

If anyone has any suggestions on how we can make any part of this process easier in XP I would be extremely grateful.

Thankyou,

John Ortt.

Nov 13 '05 #2
I consolidated the forms, table and code into an mdb file that may be used
to test the process.

http://amazecreations.com/datafast/G...uto-Logout.zip
--

Danny J. Lesandrini
dl*********@hotmail.com
http://amazecreations.com/datafast/


Nov 13 '05 #3
Thanks Danny,

That looks excellent and I am sure we will be able to adapt it to suit our
needs.

As I mentionned, I was experimenting with a very similar system myself but
nowhere near as neatly coded.

Lets hope it proves to be more stable in the database.

Thanks again,

John
"Danny J. Lesandrini" <dl*********@hotmail.com> wrote in message
news:qN********************@comcast.com...
I consolidated the forms, table and code into an mdb file that may be used
to test the process.

http://amazecreations.com/datafast/G...uto-Logout.zip
--

Danny J. Lesandrini
dl*********@hotmail.com
http://amazecreations.com/datafast/

Nov 13 '05 #4
The article is ready at Database Journal ...

http://databasejournal.com/features/...le.php/3548586

"John Ortt" <jo******@noemailsuppliedasdontwantspam.com> wrote ...
Thanks Danny,

That looks excellent and I am sure we will be able to adapt it to suit our needs.

Nov 13 '05 #5

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

Similar topics

0
by: Zvika Glickman | last post by:
I'm migrating DB2 to ORACLE 9I. In the DB2 schema each table defined in diferrent tablespace. Few tablespaces are define on the same STOGROUP (there are few STOGROUP). It's a big db (few terra...
3
by: Wolfgang Bachmann | last post by:
We migrated a database from Version 5.1 to 8.1 and are experiencing massive locking problems. We migrated in the following steps: 0) Server 5.2, Clients 5.2: everithing was fine 1) Server 5.2,...
5
by: Scott | last post by:
I have a customer that had developed an Access97 application to track their business information. The application grew significantly and they used the Upsizing Wizard to move the tables to SQL...
6
by: Shai Levi | last post by:
Hi, I'm trying to migrate native c++ class to managed c++ class. The native class header definition looks as: class NativeClass { public: typedef void (CbFunc1)(int n,void* p);
3
by: BobRoyAce | last post by:
I would really appreciate recommendations for sources of materials on migrating ASP applications to ASP.NET (books, URL's, etc.). Also, is there a magazine that is particularly good for .NET stuff....
6
by: Alex | last post by:
Hello people, We have a large application (about 5000 source files) consisting of multiple executables, DLLs and COM components written in C++. We develop and build it in Visual Studio 2003. ...
2
by: ScottL | last post by:
Hi - I have an issue with the DataGridView. I am formatting the DGV in code and not using the designer. I drop a DGV on my form, code the formatting including some columns.visible = false. After...
34
by: subramanian100in | last post by:
Is there any difference between porting and migrating. Kindly explain
1
by: Thomas Due | last post by:
Hi, I manage an rather old application in which we have some fairly complex (ugly) Delphi code. This is Delphi 6 we're talking about. Among all this Delphi code there is method for formating a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.