Tuesday, April 1, 2008

Write Locked File error during installation of SQL Server 2005 SP 1

During the installation of SQL Server 2005 SP 1 (Service Pack 1), you may encounter the following error:

The following files are currently locked. In order to prevent a necessary reboot at the end of the patch install process, close down all other applications before proceeding.


Write locked file: C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\msftesql.exe (msftesql.exe)
Write locked file: C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\msftepxy.dll (msftesql.exe)
Write locked file: C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\msfte.dll (msftesql.exe)
Write locked file: C:\Program Files\Microsoft SQL Server\90\Shared\sqlbrowser.exe (sqlbrowser.exe)
Write locked file: C:\Program Files\Microsoft SQL Server\90\Shared\svenumapi.dll (wmiprvse.exe)


To solve this. go to Control Panel->Administrative Tools->Services and Stop the following services.

1.) SQL Server FullText Search (MSSQLSERVER)
2.) SQL Server Browser


2 comments:

Sandeep Silicus said...
This comment has been removed by the author.
Sandeep Silicus said...

Thanks a lot Chris.