Exchange VSS : At Exchange Server 2010 ESEUtil fails with Jet error–1032

Recently I was playing for a VSS issue at my Exchange Server 2010 environment – when I run the ESEUtil (with its parameter /mh) command then I got the error “Jet error –1032”.

> eseutil /mh "D:\Temp\tempdb.edb "
Extensible Storage Engine Utilities for Microsoft(R) Exchange Server Version 14.00
Copyright (C) Microsoft Corporation. All Rights Reserved.
Initiating FILE DUMP mode...
Error: Access to source database 'D:\Temp\tempdb.edb’ failed with Jet error -1032.

The error code –1032 points to JET_ERRFileAccessDenied, which tells us that I cannot access the file, as the file is locked or in use. This is the first time I noticed the issue at my end. When I investigated further I realized the issue - I have mounted the database and ran the ESEUtil. The database needs to be offline to read the header information. So I dismounted the database and ran the ESEUtil worked like a charm – bingo!!

Happy debugging!!