Summary
Publising a repository may generate the following error:
Could not start MSSQL$LFPLUS service. GetLastError() returned 2.
Cause
A registry key used by Plus in conjunction with the MSSQL$LFPLUS service may not be correct. This registry key should be updated, in order to allow Plus to publish.
Resolution
This issue can be resolved by modifying the SQLPath registry value, so that it points to the appropriate Windows folder.
To update the SQLPath registry value
regedt32
C:\Program Files\Microsoft SQL Server\80\Tools
Note: You may need to adjust the path if you installed Microsoft SQL Server to a different drive or on a non-English operating system.