Configuring the publication

The next step, after setting up distribution, is publication. This is the part where we select the objects that we want to propagate to the subscriber. In the distribution, we set up SQL2012-01 as the publisher. So, let's go to that server and configure the publication:

  1. In the Object Explorer window, expand the SQL2012-01 object. Then, expand the Replication folder. Select and right-click on the Local Publications folder, and select New Publication as shown in the following screenshot:
    Configuring the publication
  2. That initializes the New Publication Wizard. Read the information on the dialog. Click on Next.
  3. On the select Distributor step, select the second radio button to specify we want to use a different distributor. Click on the Add button, which displays the Connect to Server prompt. Log in to SQL2012-02 which we designated as our distributor. Click on Next.
  4. At the Administrative Password dialog, specify the password that we entered when we set up the distributor. This allows the publisher to contact the distributor. Click on Next.
  5. The next step allows us to choose the database the data or objects that we want to publish. In the Databases list, select AdventureWorks2012. Click on Next.
  6. In the Publication type, select Transactional publication. Click on Next.
  7. Now, we get to select the database objects, or the articles that we want to publish. Expand the tables and select SalesOrderHeader and SalesOrderDetail. You may notice you can select an individual column too. This is huge because you may not want to propagate sensitive data that has security risks, such as social security numbers, credit card numbers.
  8. Use the Article Properties drop-down list to set properties of the table articles. We'll just click on Next now.
  9. The Filter Table Rows step gives you another opportunity to filter your data. Just click on Next for now.
  10. On the next step, Snapshot Agent, specify that we want to create a snapshot immediately. And also, select to run the Snapshot agent at a particular schedule.
    Configuring the publication
  11. Click on Next when done.
  12. On the Agent Security step, specify a domain account that is either the SQL Server Agent account's security context or a Windows account with low privilege. Click on the Security Settings button to configure. Click on Next.
    Configuring the publication
  13. On the next two steps, select the option to create this publication and give it a name. Click on Finish to complete the setup.
  14. Verify that the publication is successful. Check the Object Explorer window if the Publication object now exists:
    Configuring the publication
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.128.173.53