Thứ Sáu, 2 tháng 11, 2012

Khắc phục sự cố khi cài đặt SQL Server 2005/2008 Express

Khi cài SQL Server 2005/2008 express đôi khi ta có thể bắt gặp lỗi thông báo liên quan đến COM+ rất khó chịu như:

COM Plus Catalog Requirement (Warning)
Messages
-COM Plus Catalog Requirement
-If SQL Server Setup fails,
Setup will roll back the installation but may not remove all
.manifest files. The workaround is to rename the files and then rerun Setup.For more
information, see How to: Work Around COM+ Check Failure in SQL Server Setup.

Cách khắc phục rất đơn giản như sau:
+ Vào CMD và gõ lệnh msdtc.exe -install
+ Sau đó start service tên Distributed Transaction Coordinator
+ Nếu không thể khởi động được service thì làm một trong 2 cách sau:
- Cách 1: Re-create the MS DTC log for Distributed Transaction Coordinator Service
+ Vào CMD gõ lệnh msdtc -resetlog
+ sau đó gõ tiếp lệnh net start msdtc
- Cách 2: Set the logon account permissions for the MS DTC service


Trong quá trình cài đặt nếu gặp lỗi như sau:

SQL Server Setup failed to execute a command for server configuration. 
The error was [Microsoft][SQL Native Client][SQL Server]
Cannot add functional unit 'sp_sqlagent_get_startup_info' to component 'Agent XPs'. 
This unit has been already registered with the component. 
Refer to the server error logs and Setup logs for detailed error information.

Cách khắc phục thật đơn giản: chỉnh lại ngày giờ cho chính xác, đúng múi giờ.