Groups | Blog | Home
all groups > sql server replication > july 2005 >

sql server replication : ActveX Pull error


Darin
7/7/2005 5:57:32 AM
I have a publication created using SQLDMO on the server.

..PublicationAttributes = SQLDMO_PUBATTRIB_TYPE.SQLDMOPubAttrib_AllowPull
+ _

SQLDMO_PUBATTRIB_TYPE.SQLDMOPubAttrib_ImmediateSync + _

SQLDMO_PUBATTRIB_TYPE.SQLDMOPubAttrib_IndependentAgent + _

SQLDMO_PUBATTRIB_TYPE.SQLDMOPubAttrib_AllowAnonymous

I am trying to get a Pull to work from a laptop (in test mode connected
to the main SQL machine via ethernet, but in the end will be connected
via the internet).

The Pull is done via ActiveX:
With myMergeObj
.Distributor = "IIS-SQL"
.DistributorLogin = login
.DistributorPassword = password
.DistributorSecurityMode = SECURITY_TYPE.DB_AUTHENTICATION

.Publisher = inxRS.Globals.gServer
.PublisherDatabase = "SAMPLE"
.Publication = "SAMPLE-RS"
.PublisherLogin = login
.PublisherPassword = password
.PublisherSecurityMode = SECURITY_TYPE.DB_AUTHENTICATION

.Subscriber = Trim(Environment.MachineName)
.SubscriberDatabase = "SAMPLE"
.SubscriberSecurityMode = SECURITY_TYPE.DB_AUTHENTICATION
.SubscriptionType = SUBSCRIPTION_TYPE.PULL
.SubscriberLogin = login
.SubscriberPassword = password
.SubscriptionName = "SAMPLE-RS"

.HostName = Trim(inxRS.Globals.gLogin)
.ExchangeType = EXCHANGE_TYPE.BIDIRECTIONAL
End With

myMergeObj.Initialize()
myMergeObj.Run()
myMergeObj.Terminate()


This errors with:

Server 'IIS-LAPTOP' is not registered at server 'IIS-SQL'.

I thought for PULL all I had to do was create the subscription for
anonymous access. What am I missing?

Thanks.
Darin

Hilary Cotter
7/7/2005 10:22:03 AM
You will need to use the PublisherNetwork and DistributorNetwork and set
them to TCPIP_SOCKETS (a value of 1), and set the PublisherAddress and
DistributorAddress to the IP address of the Publisher or its FQDN (i.e.
Publisher.Microsoft.com).

--
Hilary Cotter
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]

Darin
7/7/2005 1:06:37 PM
I got further, thanks. But, no I get the error:


The schema script
'c:\inware\data\unc\IIS-SQL_inware_inware-RS\20050707140259\UTCompany_1.
sch' could not be propagated to the subscriber.
The process could not read file 'same file as above' due to OS error 3.
The system cannot find the path specified.



Darin

Paul Ibison
7/8/2005 9:15:25 AM
Darin,
the problem would appear to be with the location of the working folder -
it's using the c drive of the distributor. If you change it to use a file
share, reinitialize, run the snapshot agent then synchronize it should be
fine.
HTH
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)

AddThis Social Bookmark Button