Friday, March 9, 2012

Replication of StoredProcedures

I am trying to replicate stored procedures (after the fact) using the
following script
EXEC sp_addscriptexec @.publication = 'BSC_UserPubl',
@.scriptfile = '[\\MGROVEDB10\data$\ReplData\iDeal\DynSnapShot\Sc ript\MGroveDB10_Ideal_Client_Repl_ScriptVER1.sql]'
,
@.skiperror = 1
and i get this error
Server: Msg 21331, Level 16, State 1, Procedure sp_MScopyscriptfile,
Line 40
Failed to copy user script file to the Distributor.(copy
"[\\serverDB10\data$\ReplData\iDeal\DynSnapShot\Sc ript\MGroveDB10_Ideal_Client_Repl_ScriptVER1.sql]"
"\\serverdb4\data$\iPlan\ReplData\2004051209421711 0")
Could some one help me with pointers as tyo what needs to be done to
get this going. This help will be very much apprciated
Thanks
RG
Ramesh,
can you try sharing the repldata folder and use
\\MGROVEDB10\ReplData\MGroveDB10_Ideal_Client_Repl _ScriptVER1.sql
HTH,
Paul Ibison
|||Thanks Paul, I will give it a shot and let you know of the progress
|||I shared the repldata folder and used a different publication
EXEC sp_addscriptexec @.publication = 'BSC_UserPubl',
@.scriptfile = '\\MGROVEDB10\ReplData$\MGroveDB10_Ideal_Client_Re pl_ScriptVER1.sql' ,
@.skiperror = 1
and I still get the error
Server: Msg 21331, Level 16, State 1, Procedure sp_MScopyscriptfile, Line 40
Failed to copy user script file to the Distributor.(copy "[\\MGROVEDB10\data$\Script.sql]" "\\mgrovedb10\data$\iPlan\ReplData\200405130913011 10")
In fact whene i tried executing the sp_MScopyscriptfile proc with the appropraite parameters i still get the same error.
Any pointers will be greatly appreciated
Thx
RG
-- Paul Ibison wrote: --
Ramesh,
can you try sharing the repldata folder and use
\\MGROVEDB10\ReplData\MGroveDB10_Ideal_Client_Repl _ScriptVER1.sql
HTH,
Paul Ibison
|||Ramesh,
you're still using hidden shares and I think this may be the issue. Can you
change to a normal share, add rights to allow the sql server agent and see
if that works. If not, then there is a known error with this type of
behaviour: http://www.mcse.ms/message641761.html and I would be tempted to
use linked servers or use remote registrations to do this.
Regards,
Paul Ibison

No comments:

Post a Comment