Use the information in this section to help troubleshoot SQL Server site database replication issues.
Replicated Objects are Out of Date on the SQL Server Replica
Configuring site database data for replication changes the objects to be replicated and may cause them to be out of date when the database tables are replicated. If this happens, you may see errors in the ddm.log and dataldr.log files similar to:
Microsoft SQL Server reported SQL message 2801, severity 16: [Microsoft][ODBC SQL Server Driver][SQL Server]The definition of object 'sp_GetPublicKeyForSMSID' has changed since it was compiled. : sp_GetPublicKeyForSMSID
After creating a SQL publication, the following stored procedure should be run on the SQL Server site database server computer (publisher) to ensure that objects to be replicated have been updated to the most current information.
|This procedure uses the sp_GetPublicKeyForSMSID object referenced in the issue log example. This procedure can be used for any replication article experiencing this error and referenced in ddm.log or dataldr.log files.|
To update objects to be replicated on the SQL Server publisher computer
In the SQL Server 2005 SQL Server Management Studio console connected to the SQL Server hosting the site database replica, expand Databases, right click the site database name and click New Query.
In the query results pane, enter the following commands:
EXEC sp_recompile GetPublicKeyForSMSID
Click Execute to begin reconfiguration.
Verify that the object to be replicated has been successfully marked for recompilation in the Messages pane.
SMS_MP_CONTROL_MANAGER reports error 500
When a management point is configured to access site data from a replicated SQL Server site database, and the replicated site database is not functioning properly, management point control manager (SMS_MP_CONTROL_MANAGER) will report error 500. Because management point control manager attempts to access management point information the same way clients do, it returns the same error that a client would when it fails to access management point information.
Before troubleshooting Internet Information Services (IIS) for possible errors, ensure that SQL Server database replication is functioning properly.