Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SP2 cant read from or write to database

8 views
Skip to first unread message

Jerry

unread,
Aug 27, 2004, 6:50:49 PM8/27/04
to
Every time i try to install SP2 i get the error that it
cant read from or write to database. I cant figure out
how to get this update to install. Please email me with
any ideas

Torgeir Bakken (MVP)

unread,
Aug 30, 2004, 12:50:45 PM8/30/04
to
Jerry wrote:

Hi

Try this:

Place the text below in a .bat (batch) file (e.g. paste it into a new
notepad document and save it with e.g. the name fixdb.bat)

Then run the batch file by double clicking on it.

You should run the batch file just after a reboot of the computer (as
the first thing).

The batch file will tell you when it is finished.

Please post any result back here, good or bad :-)

Start batch file:
--------------------8<----------------------

@echo off
:: Batch file that tries to remedy error # 800710D9
:: "Unable to read from or write to the database".
:: Author: Torgeir Bakken
:: Date: 2004-08-30

:: Stop the Cryptographic service
%SystemRoot%\System32\net.exe stop CryptSvc

:: Rename all log files in the %SystemRoot%\Security folder
FOR %%a in (%SystemRoot%\Security\*.log) DO move /y %%a %%a.old

:: Rename the %SystemRoot%\System32\CatRoot2 folder
move /y %SystemRoot%\System32\CatRoot2 %SystemRoot%\System32\CatRoot2old

IF not exist %SystemRoot%\System32\CatRoot2 GOTO CONT01

:: In case the folder rename failed because of locked files
:: rename all log files in the %SystemRoot%\System32\CatRoot2 folder
FOR %%a in (%SystemRoot%\System32\CatRoot2\*.log) DO move /y %%a %%a.old
SET catroot2locked=True

:CONT01
cls
echo.
echo Please wait, this might take some time...

:: Unregister DLL files that are associated with Cryptographic Services
CD /D %SystemRoot%\System32
start /wait regsvr32.exe /s /u softpub.dll
start /wait regsvr32.exe /s /u wintrust.dll
start /wait regsvr32.exe /s /u initpki.dll
start /wait regsvr32.exe /s /u dssenh.dll
start /wait regsvr32.exe /s /u rsaenh.dll
start /wait regsvr32.exe /s /u gpkcsp.dll
start /wait regsvr32.exe /s /u sccbase.dll
start /wait regsvr32.exe /s /u slbcsp.dll
start /wait regsvr32.exe /s /u cryptdlg.dll

:: Reregister DLL files that are associated with Cryptographic Services
start /wait regsvr32.exe /s softpub.dll
start /wait regsvr32.exe /s wintrust.dll
start /wait regsvr32.exe /s initpki.dll
start /wait regsvr32.exe /s dssenh.dll
start /wait regsvr32.exe /s rsaenh.dll
start /wait regsvr32.exe /s gpkcsp.dll
start /wait regsvr32.exe /s sccbase.dll
start /wait regsvr32.exe /s slbcsp.dll
start /wait regsvr32.exe /s cryptdlg.dll

:: Configure and start the Cryptographic service
%SystemRoot%\system32\sc.exe config CryptSvc start= auto
:: Start the Cryptographic Service
%SystemRoot%\system32\net.exe start CryptSvc
cls

echo.
If "%catroot2locked%"=="True" GOTO CONT02
echo Finished, please reboot the computer and then try to install SP2 again...

GOTO END
:CONT02
echo Please run the batch file again with a newly restarted computer...
echo (but if it is newly restarted, just do a reboot and then try
echo to install SP2 again)...
GOTO END

:END
echo.
pause

--------------------8<----------------------


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx

DrB the C4I Guy

unread,
Aug 30, 2004, 6:33:03 PM8/30/04
to
Thank you for this Batch File. It worked with a run-time of about 45
seconds. The installation which followed was SUCCESSFUL! One more computer
to go.

Torgeir Bakken (MVP)

unread,
Aug 31, 2004, 7:02:05 AM8/31/04
to
DrB the C4I Guy wrote:

> Thank you for this Batch File. It worked with a run-time of about 45
> seconds. The installation which followed was SUCCESSFUL! One more computer
> to go.

Great! Thanks for the feedback :-)

Luis Pimentel Jr.@discussions.microsoft.com J. Luis Pimentel Jr.

unread,
Sep 17, 2004, 8:35:01 PM9/17/04
to
I have a HP Pavilion computer and I tried to install SP2 three times but kept
getting the ERROR CODE 800710D9 : unable to read from or write to the
database. I had followed all the recommended pre-installation steps from HP
and even done everything that the MS web site suggested!. I was frustrated.
Then, somehow I came across Mr. Bakken batch file and, with hesitation, I
decided to try it.
It was like a miracle!! I am running Windows XP SP2 thanks to Torgeir
Bakken! Torgeir you are awesome, thank you for sharing your knowledge with
others!
J. Luis Pimentel Jr.

M@discussions.microsoft.com Stu M

unread,
Sep 23, 2004, 5:05:02 PM9/23/04
to
All I can say is give this man a medal !!!!! I had no problems after using
the batch file. Many thanks for the info.

Robert Baker

unread,
Oct 11, 2004, 8:43:02 AM10/11/04
to
I used this batch file to fix my "unable to read or write to database". I
also have a HP pavilion. IT worked great. I have SP2 loaded and no problems.
Thanks.

John B

unread,
Nov 30, 2004, 6:39:04 AM11/30/04
to
Torgeir,

You've saved someone else's sanity today. Thanks!

Have they set the date for your canonization yet?? :)

Torgeir Bakken (MVP)

unread,
Nov 30, 2004, 8:20:59 PM11/30/04
to
John B wrote:

> Torgeir,
>
> You've saved someone else's sanity today. Thanks!

Your welcome :-)


> Have they set the date for your canonization yet?? :)

Not yet ;-)

matthew

unread,
Jun 23, 2005, 6:06:02 PM6/23/05
to

debiy

unread,
Oct 22, 2006, 3:55:01 PM10/22/06
to
thank you, thank you, thank you -- you are a Godsend! this information was
invaluable -- i cannot tell you how many hours i've spent trying to get this
installed!

thanks again,
--
sincerely, debiy

0 new messages