MSSQL database synchronization of SQL replication

SQL replication of the basic elements include Publishing server, subscription server, distributed servers, publications, articles SQL replication works SQLSERVER mainly publications, subscription way to handle replication. The source data server where the server is publishing, responsible for published data. Copies of all the changes of the publishing server to post data to the distribution server, the distribution server includes a distributed database, data can be received all the changes and save these changes, and then distributed to subscribers of these changes SQLSERVER replication type SQLSERVER provides three replication technologies are: 1, snapshot replication (stay will we use this) 2, transaction replication 3, as long as the above merge replication clarify these concepts so on the copy and will have a certain understanding. Then we step by step to achieve the replication step. The first publication of the first to configure the server (1) select the specified [server] node (2) from the [Tools] drop-down menu [Copy] sub-menu, select [publish, subscribe to the server and distributed] command (3) The system pops up a dialog box point [Next] and then looked up prompts to complete the operation. (4) When completed the set later publication server system will add a tree structure for replication monitor server. But also generate a distribution database (distribution) Second create a publication (1) select the specified server (2) sub-menu, select [Create and Manage Publications] command from the [Copy] [Tools] menu. At this point the system will pop up a dialog box (3) choose to create a publications database, and then click [Create Publication] (4) [the Create Publication Wizard] in the prompt dialog box, click [Next] system will pop up a dialog box. The contents of the box are three types of replication. We now select the first snapshot is the default (the other two you can go and see help) (5) Click [Next] system requirements specified can subscribe to the release of the database server type, SQLSERVER allows different databases The data replication between ORACLE or ACCESS. But here we choose to run the database server SQLSERVER2000 (6) Click [Next] system will pop up a dialog box that is the definition of the article published in the table to select (7) then [Next] until the operation is complete. When you create a publication after publication of creating a database it will become a shared database. Subscription third design (1) to select the specified subscriber (2) from the [Tool] dropdown menu [Copy] submenu [Subscription Request] (3) The Click [Next] until the operating system will prompt check SQLSERVER agent service running state, a prerequisite for the implementation of the copy operation is SQLSERVER proxy service must have been launched. (4) Click [Finish]. Subscribe to complete the operation. Completion of the above steps actually copy is successful. But how to know whether to copy the success of it? Here you can quickly see whether the success of this method. Expand the server following the publication copy - publish content - Right publish content - Properties - hit live - state and then immediately run the agent then hit live agent properties point to dispatch schedule set to occur every day, every minute between 0:00:00 and 23:59:59. The next step is to determine whether the copy was successful open C: / ProgramFiles / MicrosoftSQLServer / MSSQL / REPLDATA / unc / XIAOWANGZI_database_database below to see if they have some time as the file name of the folder in almost a minute to produce a. If you do not believe, then you open your database look to see whether you have just seen the table published in the specified subscription database subscription server - / ProgramFiles / MicrosoftSQLServer / MSSQL / REPLDATA / unc / XIAOWANGZI_database_database below to see if they have some time as the file name of the folder in almost a minute to produce a. If you do not believe, then you open your database look to see whether you have just seen the table published in the specified subscription database subscription server - / ProgramFiles / MicrosoftSQLServer / MSSQL / REPLDATA / unc / XIAOWANGZI_database_database below to see if they have some time as the file name of the folder in almost a minute to produce a. If you do not believe, then you open your database look to see whether you have just seen the table published in the specified subscription database subscription server -

 

Guess you like

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