all groups > sql server replication > september 2007 >
You're in the

sql server replication

group:

Merge Replication - sp_addscriptexec


Merge Replication - sp_addscriptexec Softworks
9/29/2007 9:23:39 PM
sql server replication:
I have (3) subscribers out of a total of 185 that are failing on syncing.

The error occurs when trying to apply a script to the subscriber. The
script was posted using sp_addscriptexec.


The schema script
'0\\myserver\sharename\20070927191933967\customer_firstlast.sql' could not
be propagated to the subscriber.
(Source: Merge Replication Provider (Agent); Error number: -2147201001)
---------------------------------------------------------------------------------------------------------------
Failed to launch 'osql'
(Source: SubscriberName\InstanceName (Agent); Error number: 20130)
---------------------------------------------------------------------------------------------------------------
The system cannot find the path specified.
(Source: (OS); Error number: 3)
---------------------------------------------------------------------------------------------------------------


The following have been done to troubleshoot
1) Net use \\myserver\sharename\20070927191933967 -- subscriber has no
problem seeing the sql file
2) Made sure the SQLAgent was running under the correct user account.

I'm running MSDE 2000 SP3.

Any help would be appreciated.
Thanks


Re: Merge Replication - sp_addscriptexec Hilary Cotter
9/30/2007 11:44:49 AM
sounds like osql is not present on these subscribers. What version of SQL
Server is running there?

Can you run osql from the command prompt on these subscribers?

--
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
[quoted text, click to view]

Re: Merge Replication - sp_addscriptexec Softworks
9/30/2007 1:34:27 PM
MSDE 2000 SP3 is running on the subscribers. I'm able to run osql from the
command prompt with no problem.

[quoted text, click to view]

Re: Merge Replication - sp_addscriptexec Hilary Cotter
9/30/2007 8:49:59 PM
are these pull subscribers using ftp?

--
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
[quoted text, click to view]

Re: Merge Replication - sp_addscriptexec Softworks
9/30/2007 9:28:32 PM
These are pulls over VPN using UNCs.

[quoted text, click to view]

Re: Merge Replication - sp_addscriptexec Hilary Cotter
10/1/2007 8:25:14 AM
Can you try this on the problem subscriber(s)

master.dbo.xp_cmdshell 'dir
\\myserver\sharename\20070927191933967\customer_firstlast.sql'

The cmd shell should run under the SQL Server agent account on the
subscriber(s). I want to verify it can read this file.

--
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
[quoted text, click to view]

Re: Merge Replication - sp_addscriptexec Softworks
10/1/2007 9:48:19 AM
It appears that osql attempts to connect using the account of the user
running osql not the account running the sql agent service. That is if I
don't provide the -U switch.

[quoted text, click to view]

Re: Merge Replication - sp_addscriptexec Hilary Cotter
10/1/2007 11:12:15 AM
Yes, that is correct, but replication should use the SQL Server Agent
account to make the connection. Can it? Does that last query I gave you
work?

--
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
[quoted text, click to view]

Re: Merge Replication - sp_addscriptexec Softworks
10/1/2007 9:18:45 PM
Yes, the DIR query you gave me works.

[quoted text, click to view]

Re: Merge Replication - sp_addscriptexec Softworks
10/2/2007 8:25:59 PM
I finally resolved the issue and don't understand how this could happen.

With the verbose flag on I found that it was looking for osql.exe in a
folder that does not exist.
The osql command is: "C:\Program Files\Microsoft SQL
Server\80\Too\Binn\osql.exe"

My other subscriber had the same issue where it was looking for osql.exe in
SQL Server\80\Tool\Binn\osql.exe

In the past four years I've been running osql from the command line on these
subscribers with no problem. For some reason Replication is looking in
these bizarre folders for osql.exe.

Have you ever come across this in your working with replication?

[quoted text, click to view]

Re: Merge Replication - sp_addscriptexec Hilary Cotter
10/2/2007 11:07:08 PM
nope.

--
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
[quoted text, click to view]

AddThis Social Bookmark Button