Showing posts with label merge. Show all posts
Showing posts with label merge. Show all posts

Wednesday, March 28, 2012

scriptexec sp4?

sp_scriptexec, pro p[ropagate a script to merge subs...
I've done this before, but I'm getting this error? i check permissions &
normal stuff...
Server: Msg 21330, Level 16, State 1, Procedure sp_MScopyscriptfile, Line 31
Failed to create a sub-directory under the replication working directory.(md
"\\GWF-DB\d$\SQL\MSSQL\ReplData\20050722165541703")
am i missing anything?
Scott Kramer
CDS Technologies, Inc.
www.clevelanddata.com
www.groundzerolan.com
www.team501.com
damn, i found it under the server publisher options, kind like a working
dir, ?!?
"S c o t t K r a m e r" <sckramer2000@.hotmail.com> wrote in message
news:e37d4$42e15dde$a227293d$22391@.ALLTEL.NET...
> sp_scriptexec, pro p[ropagate a script to merge subs...
> I've done this before, but I'm getting this error? i check permissions &
> normal stuff...
> Server: Msg 21330, Level 16, State 1, Procedure sp_MScopyscriptfile, Line
> 31
> Failed to create a sub-directory under the replication working
> directory.(md "\\GWF-DB\d$\SQL\MSSQL\ReplData\20050722165541703")
> am i missing anything?
> --
> Scott Kramer
> CDS Technologies, Inc.
> www.clevelanddata.com
> www.groundzerolan.com
> www.team501.com
>

Wednesday, March 7, 2012

Script code for "Reinitialize All Subscripers" function SQL 2005

Hello All
We are running Merge replication on SQL 2005 with Pocket PC Clients.
My question is, can i script (T-SQL) the same function as if i rightclick on
the Replication Publication, and select "Reinitialize All Subscripers" and
then click on "Create New SnapShot" + "Upload Changes"?
Which system stored procedures should i use? I need to do the same just with
T-SQL.
Thanks
use sp_reinitsubscription
Hilary Cotter
Director of Text Mining and Database Strategy
RelevantNOISE.Com - Dedicated to mining blogs for business intelligence.
This posting is my own and doesn't necessarily represent RelevantNoise's
positions, strategies or opinions.
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
"RU Developer" <RUDeveloper@.discussions.microsoft.com> wrote in message
news:30B41C88-47D1-4C19-B580-757A3F40FE77@.microsoft.com...
> Hello All
> We are running Merge replication on SQL 2005 with Pocket PC Clients.
> My question is, can i script (T-SQL) the same function as if i rightclick
> on
> the Replication Publication, and select "Reinitialize All Subscripers" and
> then click on "Create New SnapShot" + "Upload Changes"?
> Which system stored procedures should i use? I need to do the same just
> with
> T-SQL.
> Thanks
|||or sp_reinitpullsubscription if you have pull subscriptions
Hilary Cotter wrote:[vbcol=seagreen]
> use sp_reinitsubscription
> --
> Hilary Cotter
> Director of Text Mining and Database Strategy
> RelevantNOISE.Com - Dedicated to mining blogs for business intelligence.
> This posting is my own and doesn't necessarily represent RelevantNoise's
> positions, strategies or opinions.
> 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
>
> "RU Developer" <RUDeveloper@.discussions.microsoft.com> wrote in message
> news:30B41C88-47D1-4C19-B580-757A3F40FE77@.microsoft.com...