Replication : SQL Server 2000 <=> SQL Server CE 2.0

  • Thread starter Thread starter Antoo
  • Start date Start date
A

Antoo

Could someone explain me, a newbie to Replication and .NET?
- What value should I assign for the Subscriber member of
SqlCeReplication class? Is it a new CE database or the
existing CE database on my device? I have a local CE
database on my device.
- If I used CreateDatabase as a parameter for
AddSubscription I got the native error # 28558 (database
creation problem) and if I used ExistingDatabase I got
28559 (database opening problem). What could it be?

Thank.
 
The subscriber property can be anything you choose.

If you already have the database on the device, use the
"EXISTING_DATABASE" parameter on the AddSubscription() method, otherwise
you can create the database by choosing create_database.. Also, you are
only allowed 1 connection to the database at any time. Make sure you don't
have a connection when you call AddSubscription() and Synchronize().


Kevin Boske
([email protected])
SQL Server CE Team
Microsoft
----------------------------------------------------------------------------
----------------------------------------
Everything you need to know about SQL Server CE:

http://www.microsoft.com/sql/ce/techinfo/default.asp
----------------------------------------------------------------------------
----------------------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.
----------------------------------------------------------------------------
----------------------------------------
--------------------
Content-Class: urn:content-classes:message
From: "Antoo" <[email protected]>
Sender: "Antoo" <[email protected]>
Subject: Replication : SQL Server 2000 <=> SQL Server CE 2.0
Date: Wed, 5 Nov 2003 16:39:17 -0800
Lines: 11
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Thread-Index: AcOj/mjVFk1ErvQ4Tvyld7e/IuNfLA==
Newsgroups: microsoft.public.dotnet.framework.compactframework
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:37868
NNTP-Posting-Host: TK2MSFTNGXA13 10.40.1.165
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

Could someone explain me, a newbie to Replication and .NET?
- What value should I assign for the Subscriber member of
SqlCeReplication class? Is it a new CE database or the
existing CE database on my device? I have a local CE
database on my device.
- If I used CreateDatabase as a parameter for
AddSubscription I got the native error # 28558 (database
creation problem) and if I used ExistingDatabase I got
28559 (database opening problem). What could it be?

Thank.
 
Back
Top