Taskkill and Access

Espio

New member
Local time
7:51 AM
Messages
19
Are there any Access database dudes that know if using taskkill.exe to close access (to close a database at night so it can compact) is a bad thing to do?

I need to have my database closed at night and I always forget, taskkill.exe works, but my colleague, who designed the database, says that force quitting access breaks the database.

I want to know if he is right./.
 

My Computer

OS
Win7 Pro x64
CPU
Intel Q9550
Motherboard
Asus
Memory
2x 2GB
Graphics Card(s)
MSI 460GTX (Nvidia)
Sound Card
Asus
Monitor(s) Displays
2x Samsung 22"
Hard Drives
Vertex2 60GB SSD
2x WD 1TB Black
Not having used taskill I am not familiar with its effects. Have you tried right clicking on the task bar, bringup task manager and killing process from there?
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell XPS 420
OS
Windows 10, Home Clean Install
CPU
Intel Core2 processsor Q8200(2.33Ghz 1333FSB) Quad Core Tech
Motherboard
Dell
Memory
6 gb
Graphics Card(s)
ATI Radeon 256MB HD3650
Sound Card
Intergrated 7.1 Channel Audio
Monitor(s) Displays
Dell SP2009W 20"
Hard Drives
640 GB Serial ATA Hard drive
Cooling
Fan
Keyboard
Dell USB Keyboard
Mouse
Dell Premium Optical USB
Internet Speed
DSL 2.85
Taskkill.exe is the same as ending the Access process from the Taskmanager, I'm not asking how to use it, Im asking how it affects the database. But thanks for your quick reply :)
 

My Computer

OS
Win7 Pro x64
CPU
Intel Q9550
Motherboard
Asus
Memory
2x 2GB
Graphics Card(s)
MSI 460GTX (Nvidia)
Sound Card
Asus
Monitor(s) Displays
2x Samsung 22"
Hard Drives
Vertex2 60GB SSD
2x WD 1TB Black
Why use taskkill? Can't you communicate with Access from Command Line or a batch file? I use MySql and when I want to make changes I do a net stop mysql to gracefully shut it down, then net start mysql when done.

If not, what about using msaccess.exe /compact to compact the database if that's all that needs doing. That way you don't have to kill Acccess.

Some info here: How to use command-line switches in Microsoft Access
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
Im just one of the 5 clients accessing the single database stored on the server, I had a look into that KB article, seems more to do with opening the Database. Let me rephrase what I want:
I need my database, which is run in access, to close at 5:30pm. If you use taskkill on access to close it, does it ruin the database?
 

My Computer

OS
Win7 Pro x64
CPU
Intel Q9550
Motherboard
Asus
Memory
2x 2GB
Graphics Card(s)
MSI 460GTX (Nvidia)
Sound Card
Asus
Monitor(s) Displays
2x Samsung 22"
Hard Drives
Vertex2 60GB SSD
2x WD 1TB Black
If the database is in the middle of an update you definitely risk corrupting it. What you need to come up with is a way to tell the server to shutdown the database, do what you need to do then have the server start it again.

I'm not an Access user so can't help with this but there has to be a way.

Hopefully one of the other folks here can help.

Edit: You should be able to setup a scheduled task on the server to have it do the compact at what ever time you want.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
Back
Top