I have a separate distribution server - SQL 2005.
My Distribution cleanup job is failing with the following error:
Executed as user: <user>. Could not remove directory '\\<server>\REPLDATA_BK\unc\LNGOKCSQLP003_BANKRUPTCY_BK-SMALLER TABLES A-C\20071203122870\'. Check the security context of xp_cmdshell and close other processes that may be accessing the directory. [SQLSTATE 42000] (Error 20015). The step failed.
However the error in the agent log says this:
Replication-@rowcount_only parameter must be the value 0,1, or 2. 0=7.0 compatible checksum. 1=only check rowcou: agent distribution@rowcount_only parameter must be the value 0,1, or 2. 0=7.0 compatible checksum. 1=only scheduled for retry. Could not clean up the distribution transaction tables.
When I log in as the agent service account (also the account the job is running under) and exec the following:
exec
xp_cmdshell'dir d:\'There is no problem.
I saw one other thread marked "answered" on here about this same issue, but no answers.
Can someone help?
Thanks,
Deb