MSSql how to configure the server and client database synchronization

MSSql how to configure the server and client database synchronization

Here's how to configure MSSql server and client database synchronization related content, articles and tutorials focuses MSSql  server  client  database  synchronization  some technical knowledge related, more content welcome to visit http: //www.alixixi. COM , for more latest tutorial, here is the tutorial to explain:

1: environment
server environment:
machine name: ZehuaDb (mssql)
Operating System: Windows 2000 Server
database versions: SQL 2000 Server sp4 Personal Edition

The client
machine name: Zlp (dandan)
Operating System: Windows XP
version of the database: SQL 2000 Server sp4 Personal Edition

2: build user accounts
to create a user account on the server side
My Computer Management -> Local Users and Groups -> Users -> Create
UserName: ZLP
UserPwd: ZLP

3: Restart the server MSSQLServer
My Computer -> Control Panel -> Administrative Tools -> Services -> MSSQLServer service
(changed to: user accounts, our new zlp user \ zlp, password: zlp.)

4: Install the distribution server

A: Configuring the Distributor
Tools -> Copy -> Configure Publishing, Subscribers, and Distribution -> Next -> Next (all use the default configuration)

B: Configuration Publisher
Tools -> Replication -> Create and Manage Publications -> select the database (SZ) to be published -> Next -> snapshot -> next ->
select the content to be published -> Next -> Next -> Next -> Finish

C: Forced to configure the subscription server (push mode, pull mode with this identical)
Tools -> Copy -> Configure Publishing, Subscribers, and Distribution -> Subscriber -> New -> SQL Server Database -> Enter client server name (ZLP ) -> use SQL Server authentication (sa, blank password) -> OK -> applications -> OK

D: initialize the subscription
Replication Monitor -> Publisher (ZEHUADB) -> Double-click on Subscribe -> Force New -> next -> Select Enable Subscribers -> ZLP->
Next -> Next -> Next -> Next -> Finish

5: The test configuration was successful
Replication Monitor -> Publisher (ZEHUADB) -> Double-click SZ: SZ-> Point Status -> point immediately run Agent
View:
Replication Monitor -> Publisher (ZEHUADB) -> SZ: SZ -> select ZLP: SZ (type casting) -> right mouse button -> start the synchronization process
if no error flag (red cross), Congratulations on your successful configuration

6: Testing data
in the server to execute:
selecting a table, to execute the SQL
INSERT INTO WQ_NEWSGROUP_S SELECT "testing", 5

Replication Monitor -> Publisher (ZEHUADB) -> SZ: SZ- > Snapshot -> Boot Agent
-> ZLP: SZ (mandatory) -> Start Sync

To see whether synchronized WQ_NEWSGROUP_S insert a new record

Guess you like

Origin www.cnblogs.com/SyncNavigator8-4-1/p/10977489.html