Re: VB.Net and MSDE Replication
From: Jim Johnston (johnston_at_mounet.com)
Date: 02/22/04
- Previous message: Karen Sundquist: "Using merge replication for high availability (in addition to a cluster)"
- In reply to: John_at_hokykoky.com: "VB.Net and MSDE Replication"
- Next in thread: John: "Re: VB.Net and MSDE Replication"
- Reply: John: "Re: VB.Net and MSDE Replication"
- Messages sorted by: [ date ] [ thread ]
Date: 22 Feb 2004 10:29:31 -0800
Questions for you:
Have you applied SP3? It is required for VB.NET to run the
MergeObject correctly, especially the Status event.
Does it work with NT Authentication? If so, are you running in mixed
mode on your subscriber. You will need to be in mixed mode to use DB
Authentication
Do you have a separate Distributor? I don't see any Distributor logon
in you code.
V/R Jim Johnston
MCSD.NET, MCDBA
"John@hokykoky.com" <John@hokykoky.com> wrote in message news:<ckqf305j6stc4v90n2rlcm4uvghv68jlvj@4ax.com>...
> I am trying to create the initial database from a snapshot on my SHED1
> MS SQL server. Whenever I run the code below, I get the following
> error:
>
> 'The subscription to publication 'SteelPMOSql1' has expired or does
> not exist'
>
> When I installed MSDE 2000, I did not set the install option to change
> the security mode to SQL... Will this have any effect as I am using
> DB_AUTHENTICATION below? Alternatively, any help on why this error
> occurs would be appreciated.
>
>
>
> Private Sub RunReplMerge()
> Dim strPhase As String
>
> 'Try
>
> mobjMerge = New SQLMERGXLib.SQLMerge
>
> With mobjMerge
> strPhase = "Setup"
>
> .Publisher = "SHED1"
> .PublisherDatabase = "SteelPMOSQL"
> .PublisherLogin = "sa"
> .PublisherPassword = ""
> .PublisherSecurityMode =
> SQLMERGXLib.SECURITY_TYPE.DB_AUTHENTICATION
>
>
>
> .Publication = "SteelPMOsql1"
>
> .Subscriber = "SHED2"
> .SubscriberSecurityMode =
> SQLMERGXLib.SECURITY_TYPE.DB_AUTHENTICATION
> .SubscriberLogin = "sa"
> .SubscriberPassword = ""
> .SubscriberDatabase = "PERSONALPMO"
> .SubscriberDatasourceType =
> SQLMERGXLib.DATASOURCE_TYPE.SQL_SERVER
>
> .SubscriptionType = SQLMERGXLib.SUBSCRIPTION_TYPE.PUSH
>
> strPhase = "Initialize"
> .Initialize()
> strPhase = "Run"
> .Run()
> strPhase = "Terminate"
> .Terminate()
> End With
> Exit Sub
>
> End Sub
>
>
> ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
> http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
> ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
- Previous message: Karen Sundquist: "Using merge replication for high availability (in addition to a cluster)"
- In reply to: John_at_hokykoky.com: "VB.Net and MSDE Replication"
- Next in thread: John: "Re: VB.Net and MSDE Replication"
- Reply: John: "Re: VB.Net and MSDE Replication"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|