Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Update > SP2 cant read from or write to database

Reply
Thread Tools Display Modes

SP2 cant read from or write to database

 
 
Jerry
Guest
Posts: n/a

 
      08-27-2004
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
 
Reply With Quote
 
 
 
 
DrB the C4I Guy
Guest
Posts: n/a

 
      08-28-2004
Same Problem here on HP desktop using MS WINXP Home

Dan the C4I Guy

Log follows:

http://communities2.microsoft.com/co...xp=&sloc=en-us

"Jerry" wrote:

> 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
>

 
Reply With Quote
 
DrB the C4I Guy
Guest
Posts: n/a

 
      08-29-2004
I just did the upgrade via wireless on a Dell C400 laptop and was successful.
I've cleaned, removed programs, defraged, the HP with "home" edition and
retried and failed. I'm wondering if the HP restore partition may play a
part in these failures. I continue to get the same unable to read/write to
database message.

"Jerry" wrote:

> 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
>

 
Reply With Quote
 
Cory
Guest
Posts: n/a

 
      08-30-2004
I have a self built pc, I too am having this error. Anyone have any luck?

"DrB the C4I Guy" wrote:

> I just did the upgrade via wireless on a Dell C400 laptop and was successful.
> I've cleaned, removed programs, defraged, the HP with "home" edition and
> retried and failed. I'm wondering if the HP restore partition may play a
> part in these failures. I continue to get the same unable to read/write to
> database message.
>
> "Jerry" wrote:
>
> > 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
> >

 
Reply With Quote
 
Torgeir Bakken \(MVP\)
Guest
Posts: n/a

 
      08-30-2004
Jerry wrote:

> 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

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/scr...r/default.mspx
 
Reply With Quote
 
DrB the C4I Guy
Guest
Posts: n/a

 
      08-30-2004
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)" wrote:

> Jerry wrote:
>
> > 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

> 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/scr...r/default.mspx
>

 
Reply With Quote
 
Torgeir Bakken \(MVP\)
Guest
Posts: n/a

 
      08-31-2004
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 :-)


--
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/scr...r/default.mspx
 
Reply With Quote
 
J. Luis Pimentel Jr.
Guest
Posts: n/a

 
      09-18-2004
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.
"Torgeir Bakken (MVP)" wrote:

> Jerry wrote:
>
> > 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

> 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/scr...r/default.mspx
>

 
Reply With Quote
 
Stu M
Guest
Posts: n/a

 
      09-23-2004
All I can say is give this man a medal !!!!! I had no problems after using
the batch file. Many thanks for the info.

"Torgeir Bakken (MVP)" wrote:

> Jerry wrote:
>
> > 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

> 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/scr...r/default.mspx
>

 
Reply With Quote
 
Robert Baker
Guest
Posts: n/a

 
      10-11-2004
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.

"Torgeir Bakken (MVP)" wrote:

> Jerry wrote:
>
> > 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

> 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/scr...r/default.mspx
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA Script to Read WMP 11 Database Lou G Windows Media Player 10 09-02-2008 09:14 PM
read-only contacts unwilling to switch to read-write rhett.mtg@gmail.com Windows Vista Mail 1 12-15-2007 07:23 PM
XP SP2 installation error "unable to read from or write to database" Peter Harris Windows Update 7 11-09-2004 01:06 AM
XP pro SP2 won't install --cannot read from or write to database--error message Chad Windows Update 3 08-28-2004 02:30 PM
Unable to read from or write to database (800710D9) cm004d8137 Windows Update 0 06-26-2004 10:09 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59