mssql server 2005 replication en.ppt · 2012-05-18 · • install„microsoft sql server 2005”on...
TRANSCRIPT
![Page 1: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/1.jpg)
Microsoft SQL Server 2005 – replication
settings
![Page 2: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/2.jpg)
• Install „Microsoft SQL Server 2005”on the main server, which will be the „publisher”.
• Install „Microsoft SQL Server 2005 Express” on all servers,
which will be „subscribers”.
• All servers should be with open 1433 port.
Preparation
Step 1
• All of the IP addresses and the names of all „subscriber” servers, should be added in the
“HOSTS” fail of the Windows installation on the main server. This must be done in the end of
the fail, bellow the “local host” section.
(c:\windows\system32\drivers\etc\hosts).
• All servers should be with open 1433 port.
![Page 3: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/3.jpg)
With the „SQL Server Management Studio”, you create the data base which will be in
replication.
Step 2
It is recommended all of the initial data, as items, locations and quantities to be created in the
database before the replication. It is not recommended, a large amount of information to be
imported in the data base, if it is already working with replication.
![Page 4: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/4.jpg)
Creation of User with a password on the server, which will be used for the replication.
Step 3
The creation of an User is a two phase process. First, it must be added in section: „Security” –
„Logins” – „New login”.
![Page 5: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/5.jpg)
Creation of User with a password on the server, which will be used for the replication.
Step 4
Then you choose „SQL server authentication”, where you should define the password and to
disable the following: “Enforce password policy”, “Enforce password expiration” and “User must
change password at next login” .
![Page 6: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/6.jpg)
Creation of User with a password on the server, which will be used for the replication.
Step 5
The second phase is to add an “User” to the data base. This can be done from: „Security” –
„Users” – „New user”.
![Page 7: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/7.jpg)
Creation of User with a password on the server, which will be used for the replication.
Step 6
In the field „User name”, you should put the name you want, at the „Login name” field you
choose the already created “User” from the menu. In the “database role membership” window,
you should check “db_owner”.
![Page 8: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/8.jpg)
How to make publication
Step 7
To create a publication, you should go to: „Replication” – „local publications” and with a right
click of the mouse, choose „New publication”.
![Page 9: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/9.jpg)
How to make publication
Step 8
When you get to the upper screenshot, don’t change anything and go ahead.
![Page 10: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/10.jpg)
Distributor’s configuration
Step 9
When you get to the upper screenshot, don’t change anything and go ahead.
![Page 11: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/11.jpg)
Distributor’s configuration
Step 10
When you get to the upper screenshot, don’t change anything and go ahead.
![Page 12: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/12.jpg)
Distributor’s configuration
Step 11
When you get to the upper screenshot, don’t change anything and go ahead.
![Page 13: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/13.jpg)
How to make publication
Step 12
Choose the data base, which will be replicated.
![Page 14: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/14.jpg)
How to make publication
Step 13
Choose the type of the publication: “Merge publication”.
![Page 15: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/15.jpg)
How to make publication
Step 14
When you get to the upper screen,, please go ahead without changing anything. Leave: „SQL
Server 2005”.
![Page 16: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/16.jpg)
How to make publication
Step 15
Pick up all of the tables shown.
![Page 17: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/17.jpg)
How to make publication
Step 16
There are two recommended steps for tables: Store, Payments and Operations. Choose: “Set
Properties of This Table Articles”.
![Page 18: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/18.jpg)
How to make publication
Step 17
“Publisher range size” and “Subscriber range size" should be increased to one million.
![Page 19: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/19.jpg)
How to make publication
Step 18
When you get to the shown screen, please tap “Next”, without any changes.
![Page 20: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/20.jpg)
How to make publication
Step 19
When you get to the shown screen, please tap “Next”, without any changes.
![Page 21: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/21.jpg)
How to make publication
Step 20
When you get to the shown screen, please tap “Next”, without any changes.
![Page 22: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/22.jpg)
How to make publication
Step 21
Defining the “Security Settings” for the connection to the Publisher.
![Page 23: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/23.jpg)
How to make publication
Step 22
Please, choose „Run under the SQL Server Agent service account” and „Using the following SQL
Server login”. Put username and password.
![Page 24: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/24.jpg)
How to make publication
Step 23
When you get to the shown screen, please tap “Next”, without any changes.
![Page 25: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/25.jpg)
How to make publication
Step 24
Define the name of the publication.
![Page 26: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/26.jpg)
How to make publication
Step 25
In case, there are no mistakes, the publication is created successfully.
![Page 27: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/27.jpg)
Settings of the publication
Step 26
After the creation is done, please enter the “Properties” of the publication.
![Page 28: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/28.jpg)
Settings of the publication
Step 27
Enter the "Snapshot“ settings’ page. Choose "Put files in the following folder“ and browse for
folder: "C:\Inetpub\ftproot", Afterwards check in: "Compress snapshot files in this folder".
![Page 29: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/29.jpg)
Settings of the publication
Step 28
In the page: "FTP Snapshot and Internet" , you should check in "Allow Subscribers to download
snapshot files using FTP".
![Page 30: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/30.jpg)
Creation of a Subscriber
Step 29
An empty database should be created on the Subscriber. It must be with the same name, as the
main database. An User must be added – it must be the same, as the one in the Publisher (it
must be added to the server and to the database).
![Page 31: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/31.jpg)
Creation of a Subscriber
Step 30
Creation of a Subscriber from section „Replication” – „local publications” – our publication must
be marked and with right mouse click, “New subscriptions” must be choosed.
![Page 32: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/32.jpg)
Creation of a Subscriber
Step 31
When you get to the shown screen, please tap “Next”, without any changes.
![Page 33: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/33.jpg)
Creation of a Subscriber
Step 32
Choose the publication, to whom the Subscriber will be.
![Page 34: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/34.jpg)
Creation of a Subscriber
Step 33
In the "Merge Agent Location“ nothing have to be changed. „Push Subscriptions” must be
marked.
![Page 35: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/35.jpg)
Creation of a Subscriber
Step 34
From "Add SQL Server Subscriber“, you must choose the server, which will be a “Subscriber”.
![Page 36: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/36.jpg)
Creation of a Subscriber
Step 35
The Subscriber’s data base have to be defined.
![Page 37: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/37.jpg)
Creation of a Subscriber
Step 36
The Security Settings for the connection with the Merge Agent must be set.
![Page 38: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/38.jpg)
Creation of a Subscriber
Step 37
In the "Merge Agent Security“ field, „Run under the SQL Server Agent service account” and
„Using the following SQL Server login” must be marked. With the last setting, an username and
password have to be defined.
![Page 39: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/39.jpg)
Creation of a Subscriber
Step 38
A Synchronization Schedule must be defined.
![Page 40: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/40.jpg)
Creation of a Subscriber
Step 39
The schedule, which must be choose is: every day; every five minute.
![Page 41: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/41.jpg)
Creation of a Subscriber
Step 40
In the „Initialize Subscriptions” field, must be marked „Immediately”.
![Page 42: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/42.jpg)
Creation of a Subscriber
Step 41
In „Subscription Type” field, a “Client” must be choose.
![Page 43: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/43.jpg)
Creation of a Subscriber
Step 42
In the „Wizard Actions” window, choose „Create the subscription(s)”.
![Page 44: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/44.jpg)
Creation of a Subscriber
Step 43
A window with all chosen parameters will show up.
![Page 45: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/45.jpg)
Creation of a Subscriber
Step 44
In case, there are no mistakes, the Subscriber has be done successfully.
![Page 46: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/46.jpg)
Monitor of all replications
Step 45
From the field „Replication” – „local publications” – with a right click on the publication, a
„launch replication monitor” can be start. It can be used for monitoring the status of the
replications.
.
![Page 47: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/47.jpg)
Monitor of all replications
Step 46
From the upper screen, you can see the Subscriber in synchronization process.
![Page 48: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/48.jpg)
Monitor of all replications
Step 47
The Subscriber is still synchronizing.
![Page 49: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/49.jpg)
Monitor of all replications
Step 48
The synchronization has been successfully accomplished.
![Page 50: MSSQL Server 2005 Replication EN.ppt · 2012-05-18 · • Install„Microsoft SQL Server 2005”on the main server, which will be the„publisher”. • Install„Microsoft SQL](https://reader034.vdocuments.mx/reader034/viewer/2022042121/5e9b39455c04386c0863b1c5/html5/thumbnails/50.jpg)
Microinvest Warehouse Pro settings
• In the Microinvest Warehouse Pro
settings, must be filled in only the
“Server”, without the “Replication
Server”
• When a replication is in use,
Microinvest Warehouse Pro must work
with “Document numbers by locations”
(must be enabled).
Step 49
(must be enabled).
• All “Users” must be locked by
“Locations” and each user must work
only from the “Location” he is assigned
to.