Hi,
I've enalbed the logging and extracted the last part where the error
occured. Hope it helps in identifying the problem.
2007-09-11 08:31:19.10 SQL Command dump
2007-09-11 08:31:19.10 ================
2007-09-11 08:31:19.10 Server: CSMHRIS
2007-09-11 08:31:19.10 Database: COMMON
2007-09-11 08:31:19.10 Command Text: sys.sp_releaseapplock
2007-09-11 08:31:19.10 Parameters:
2007-09-11 08:31:19.10 @Resource = CSMHRIS-COMMON-COMMON-21
2007-09-11 08:31:19.10 @LockOwner = Session
2007-09-11 08:31:19.10 @DbPrincipal = db_owner
2007-09-11 08:31:19.26 [87%] The replication agent had encountered an
exception.
2007-09-11 08:31:19.26 Source: Replication
2007-09-11 08:31:19.26 Exception Type:
Microsoft.SqlServer.Replication.ReplicationAgentSqlException
2007-09-11 08:31:19.26 Exception Message: StartIndex cannot be less than zero.
2007-09-11 08:31:19.26 Parameter name: startIndex
2007-09-11 08:31:19.26 Message Code: 52006
2007-09-11 08:31:19.26
2007-09-11 08:31:19.26 Call Stack:
2007-09-11 08:31:19.26
Microsoft.SqlServer.Replication.ReplicationAgentSqlException: StartIndex
cannot be less than zero.
2007-09-11 08:31:19.26 Parameter name: startIndex --->
System.ArgumentOutOfRangeException: StartIndex cannot be less than zero.
2007-09-11 08:31:19.26 Parameter name: startIndex
2007-09-11 08:31:19.26 at System.Text.StringBuilder.Remove(Int32
startIndex, Int32 length)
2007-09-11 08:31:19.26 at
Microsoft.SqlServer.Replication.Snapshot.SmoScriptingManager.TextModeOnObjectScripter.ProcessGetObjectScriptResult(SqlDataReader dataReader)
2007-09-11 08:31:19.26 at
Microsoft.SqlServer.Replication.AgentCore.ExecuteWithOptionalResults(CommandSetupDelegate
commandSetupDelegate, ProcessResultsDelegate processResultsDelegate, Int32
queryTimeout, CommandBehavior commandBehavior)
2007-09-11 08:31:19.26 --- End of inner exception stack trace ---
2007-09-11 08:31:19.26 at
Microsoft.SqlServer.Replication.AgentCore.ExecuteWithOptionalResults(CommandSetupDelegate
commandSetupDelegate, ProcessResultsDelegate processResultsDelegate, Int32
queryTimeout, CommandBehavior commandBehavior)
2007-09-11 08:31:19.26 at
Microsoft.SqlServer.Replication.AgentCore.ExecuteWithOptionalResults(CommandSetupDelegate
commandSetupDelegate, ProcessResultsDelegate processResultsDelegate,
CommandBehavior commandBehavior)
2007-09-11 08:31:19.26 at
Microsoft.SqlServer.Replication.Snapshot.SmoScriptingManager.TextModeOnObjectScripter.Script()
2007-09-11 08:31:19.26 at
Microsoft.SqlServer.Replication.Snapshot.SmoScriptingManager.GenerateNonTableArticleSchScript(Scripter
scripter, BaseArticleWrapper articleWrapper, SqlSmoObject smoObject, Boolean
quotedIdentifierOn, Boolean ansiNullsOn, Boolean textMode)
2007-09-11 08:31:19.26 at
Microsoft.SqlServer.Replication.Snapshot.SmoScriptingManager.GenerateStoredProcedureArticleScripts(ArticleScriptingBundle articleScriptingBundle)
2007-09-11 08:31:19.26 at
Microsoft.SqlServer.Replication.Snapshot.TransSmoScriptingManager.GenerateArticleScripts(ArticleScriptingBundle articleScriptingBundle)
2007-09-11 08:31:19.26 at
Microsoft.SqlServer.Replication.Snapshot.SmoScriptingManager.GenerateObjectScripts(ArticleScriptingBundle articleScriptingBundle)
2007-09-11 08:31:19.26 at
Microsoft.SqlServer.Replication.Snapshot.SmoScriptingManager.DoScripting()
2007-09-11 08:31:19.26 at
Microsoft.SqlServer.Replication.Snapshot.SqlServerSnapshotProvider.DoScripting()
2007-09-11 08:31:19.26 at
Microsoft.SqlServer.Replication.Snapshot.SqlServerSnapshotProvider.GenerateSnapshot()
2007-09-11 08:31:19.26 at
Microsoft.SqlServer.Replication.SnapshotGenerationAgent.InternalRun()
2007-09-11 08:31:19.26 at Microsoft.SqlServer.Replication.AgentCore.Run()
2007-09-11 08:31:22.01 [87%]
********************************************************************************
2007-09-11 08:31:22.01 The replication agent had encountered an unexpected
exception, a memory dump
2007-09-11 08:31:22.01 containing information about the exception has been
generated at the following
2007-09-11 08:31:22.01 location:
2007-09-11 08:31:22.01
2007-09-11 08:31:22.01 C:\Program Files\Microsoft SQL
Server\90\Shared\ErrorDumps\ReplAgent_20070911163150.mdmp
2007-09-11 08:31:22.01
[quoted text, click to view] "Hilary Cotter" wrote:
> can you enable logging so we can see where it is failing?
>
>
http://support.microsoft.com/kb/312292 >
> --
> RelevantNoise.com - dedicated to mining blogs for business intelligence.
>
> Looking for a SQL Server replication book?
>
http://www.nwsu.com/0974973602.html >
> Looking for a FAQ on Indexing Services/SQL FTS
>
http://www.indexserverfaq.com