How to: Grant Access to the Database and Publication

How to: Grant Access to the Database and Publication

This topic describes how to grant access to a database and a publication while setting up replication using Microsoft SQL Server Compact 3.5 (SQL Server Compact 3.5).

  1. On the computer that is running SQL Server, click Start, point to Programs, point to Microsoft SQL Server, and then click SQL Server Management Studio.

  2. In Object Explorer, expand the computer that contains the publication, expand Security, and then expand Logins.

  3. Right-click Logins and choose New Login.

  4. In the Authentication section, choose the authentication mode, and then provide the logon name under which the Merge Agent runs. If you are using SQL Server Authentication, you must also provide the password. If you are using Windows Authentication sure that Grant server access is selected.

  5. Select the default database to which you are granting access, and then select the appropriate language.

  6. Select the Database Access page.

  7. In the list of databases, select the database from which the publication was created by selecting the check box in the Permit column.

  8. Click OK to save your changes.

  1. On the computer that is running SQL Server, click Start, point to Programs, Microsoft SQL Server, and then click SQL Server Management Studio.

  2. In Object Explorer, expand the computer that contains your publication, expand Replication, and then expand publications.

  3. Right-click the publication name and choose Properties. In the Properties dialog box, click the Publication Access List page.

  4. Click Add to add an account to the PAL. Add the user account under which the Merge Agent runs.

Show:
© 2016 Microsoft