473,549 Members | 2,598 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Remotely kill a connection?

If one of my end users has left their database open and I need to
compact it, is there a way (via code or something else) to boot a user
from a database and clear the LDB file?

I'm pretty sure short of an OnTimer event to quit the database that it
can't be done, but maybe someone out there has done something like
this. I kno wyou can break the connection via user access through a
server but the solution must be Access based for it to be useful to me.

May 9 '07 #1
1 5146
ARC
If it were me, I think I would approach it using the onTimer event as well.

What you could do is this: If all user's see the same server drive letter,
such as F:, you could create a kill file that, when placed on F:, would
cause other user's programs to exit out. So say you want to remotely boot
everyone from the program, and you know it is safe to do so (that a user
just left his program running, even though everyone's gone) create a file
called, exitdb.txt, and it wouldn't matter what was in the file.

Now, on your program file's mainmenu form, you could do an OnTimer that
maybe checks for the existance of this file every 5 minutes or so. If the
file is found, it then does a docmd.quit (preceeded by a save all).

So when you want to initiate the remote shut-downs, you could copy this
exitdb.txt file to your f:\ drive, or other shared folder on that drive.
Wait 5 minutes, and all should be well.

Of course, if users' have their pc's set to hybernate, it wouldn't work.

Just a thought...
"ManningFan " <ma********@gma il.comwrote in message
news:11******** **************@ p77g2000hsh.goo glegroups.com.. .
If one of my end users has left their database open and I need to
compact it, is there a way (via code or something else) to boot a user
from a database and clear the LDB file?

I'm pretty sure short of an OnTimer event to quit the database that it
can't be done, but maybe someone out there has done something like
this. I kno wyou can break the connection via user access through a
server but the solution must be Access based for it to be useful to me.

May 9 '07 #2

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

Similar topics

0
1267
by: Bruce Moulton via .NET 247 | last post by:
The code that I used was string ProcessStopPid = "CMD.EXE"; ManagementPath mp = new ManagementPath(@"\\"+PCName+@"\ROOT\CIMV2:Win32_Process"); ManagementObjectCollection mc = new ManagementClass(mp).GetInstances(); foreach(ManagementObject mo in mc) { Debug.WriteLine(mo.Properties.Value.ToString());...
2
2116
by: faktujaa | last post by:
Hi, I have created an application that uses IIS to host remote components. All the remote components are listed in app.config in client and web.config in server. Now the app.config can contain either localhost name/IP address to point to remote component like <wellknown type="XYZ, XYZ" url="http://localhost:80/XYZ" />. Remoting...
10
6137
by: Jako Menkveld | last post by:
I'm building a relatively simple client-server app. One of the functions of the client is to notify the server when it terminates, this all works fine. The problem comes in when the server is stopped before the client, in which case the client "hangs", waiting to talk to the server. This is how it works: Server: Starts listening on a tcp...
0
1007
by: David | last post by:
I need to kill an IP connection from a c# program but this is not a connection that the program started. Eg. kill a connection when the program aborts and restarts and the connection still exists. What I really need is to close a connection on a specific port. Thanks
2
8985
by: Fabrice | last post by:
Hello, I 'would like to build a system (based on database, not SqlServer but MySQL) to permit only one session per user. I'm using a form athentication. My Solution : --------------- When a connection is established by a user, I realize an insert in a Table, named tbLogin with many informations such as idUser, SessionId, Guid, Date,
7
1192
by: John | last post by:
Hi We have our web site remotely hosted by a service provider. We need to, from time to time, remotely upload transactions to the site from our office vb.net app. The question is how can I connect to the remote site's sql server using vb.net? Do I need to use a control etc.? What if I want to post values as parameters to an asp.net page? ...
1
4930
by: DaveP | last post by:
Hello, I do maintenance on the Back end and have like 10 - 20 connections open...specialized scrips i run and they dont need to be stored proc's is there a way to kill the connection when the script is finished...from my client side..... not just disconnect...cause server still has the pool of the connection...i want to kill the pool'd...
4
2224
by: =?Utf-8?B?VG9kZCBKYXNwZXJz?= | last post by:
Hey guys, I've written a web application that I'm simply trying to use to access a database. When I run the application locally (or as an NT Service) it can easily access the remote SQL database. However, when I host the item as a web application, it can ONLY access local SQL databases on that server, and NOT remote SQL databases (even if...
18
10208
by: =?Utf-8?B?VGhlU2lsdmVySGFtbWVy?= | last post by:
Because C# has no native SSH class, I am using SharpSSH. Sometimes, for reasons I do not know, a Connect call will totally lock up the thread and never return. I am sure it has something to do with weirdness going on with the server I am talking to. Anyhow, this locked up state happens once in a while (maybe once per day) and I can't...
0
7532
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
1
7491
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5381
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5101
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3509
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3491
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1956
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1068
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
776
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.