您的位置:首页 > 其它

合并复制方法

2008-08-05 16:11 162 查看
STEP I
Create New User
Go to start->Control Panel ->Administrative tools ->Computer management

Local users and groups ->right click ->select new user

Press Create
STEP II
Go to C directory and create a new folder as shown below

Name it as snapshot.
Right Click the folder and select sharing and security

Select share this folder and enter the name as PDA
Click permission and give full control. Clicks apply then click ok

STEP III
Download SQL SERVER 2005 Replication components from Microsoft by clicking this site
http://www.microsoft.com/downloads/details.aspx?FamilyID=6ed0fb7e-7c05-4f59-879a-8fb619e36612&displaylang=en
Click the Sqlce30setupen.msi in C:\

Click Next

Select I accept the terms in the license agreement

Click Install

We can see window like this

Click Finish

STEP IV
Go to start ->programs ->sql 2005 mobile edition ->configure Web Synchronization wizard

Click Next

Select SQL mobile edition and click Next

Select Create new Virtual directory and select default website ,then click Next

Enter PDA and select the snapshot folder (here C:\snapshot) (share name of the snapfolder as in step …..)

It you are the running first time it will show a message box saying that “The folder does not exist,do you want the folder created?” press Yes
Another message box will popup saying that this folder
“Does not contain copy of the SQL Mobile Server Agent. Do you want to copy and register the sql mobile server agent?” press YES

Secure Communication select do not require a secure channel

Client Authentication
Select Clients will connect anonymously

Anonymous Access

Click Change

Click Advanced and click Find Now

Select the user which you created in STEP I from the list and click Ok
Snapshot Share Access

Click Next and if it showing a warning saying that “The snapshot share is empty. Do you want to continue?”. Click Yes

Click Finish

Last Screen

STEP V
Open Internet Explorer and enter http://localhost/PDA/sqlcesa30.dll

If you can see the same in your internet explorer, so the IIS we configures successfully.

STEP VI
Go to Security

Select sqldbalocal from the list as shown below and click Add, then press ok

Under Server Role Tab

In Database Access Tab select the same as shown below

STEP VIII
Configuring Replication

Click Next

Click Next and click OK for the warning message

Press Ok

Press Ok

Click Ok and enter the name of the snapshot folder

Select Your database which you need to replicat from the list below
Select Merge Replication and click Next

Select Device Running SQL Server 2000 and SQL CE, then click Next

Select Tables which you want to replicate and click the box selected at the end for each table

Select All tables specified Below and do the same process specified above

Click Next and enter the publication name

Select No Create the publication specified
Next screen click Finish

Click Publication Properties

Select publication Access list

STEP IX
After all this configuration you need to create one POCKET PC application and paste this code
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: