Offline Terminal DataBase + Custom Table

Hi,

> > The table name is : ItemPrix , ItemPrixRemise. > The server name is : gesboutm > The database name is : RMS_STORE2 > The offline srever is : aures_1542 > The database offline name is : RMS_OFF > > Thanks > > Math > > "Akber Alwani" wrote: > > > HI Math, > > > > Off course MS not take care what you have added or deleted your own as this > > custom table is your own creation so there is nothing or not talk how it goes > > by automatically but do do if you want. I think if you know the merge or > > transactional replication technology then you can do so. tell me the table > > name I will create the sample script for you and sent it to you so you can > > deploy this to your server, also send me the name of your actual server and > > offline machine too. > > > > "Math" wrote: > > > > > > > > Hello, > > > I use the terminal database offline withe my POS (rms 1.3R). > > > I create my database with Pos administrator, specifie the server for offline > > > database. > > > When I generate Z report , the database synchronize items and customers. But > > > my problem is : I have a custom Table with Price connected to the Item's > > > table, and this table doesn't synchronize with the offline database. > > > > > > Is it a solution to my problem ? or a tips ? > > > > > > Thanks > > > > > > Sorry for my english. > > > > > > Math
Reply to
Math
Loading thread data ...

Hi Math, This is akber as promosie please have this script saved on the any notepad and name is mergedata.sql

-- Enabling the replication database use master GO

exec sp_replicationdboption @dbname = N'gesboutm', @optname = N'merge publish', @value = N'true' GO

use [gesboutm] GO

-- Adding the merge publication exec sp_addmergepublication @publication = N'gesboutm_Repl', @description N'Merge publication of gesboutm database from Publisher RMS_STORE2.', @retention = 0, @sync_mode N'character', @allow_push = N'true', @allow_pull = N'true', @allow_anonymous = N'true', @enabled_for_internet = N'false', @centralized_conflicts N'true', @dynamic_filters N'false', @snapshot_in_defaultfolder = N'true', @compress_snapshot N'false', @ftp_port = 21, @ftp_login = N'anonymous', @conflict_retention 14, @keep_partition_changes N'false', @allow_subscription_copy = N'false', @allow_synctoalternate N'false', @add_to_active_directory = N'false', @max_concurrent_merge = 0, @max_concurrent_dynamic_snapshots

= 0 exec sp_addpublication_snapshot @publication N'gesboutm_Repl',@frequency_type = 4, @frequency_interval = 1, @frequency_relative_interval = 1, @frequency_recurrence_factor = 0,

@frequency_subday = 1, @frequency_subday_interval = 5, @active_start_date 0, @active_end_date = 0, @active_start_time_of_day = 500, @active_end_time_of_day = 235959,

@snapshot_job_name = N'RMS_STORE2-gesboutm-gesboutm_Repl-1' GO

exec sp_grant_publication_access @publication = N'gesboutm_Repl', @login N'BUILTIN\Administrators' GO exec sp_grant_publication_access @publication = N'gesboutm_Repl', @login N'distributor_admin' GO exec sp_grant_publication_access @publication = N'gesboutm_Repl', @login N'sa' GO

-- Adding the merge articles exec sp_addmergearticle @publication = N'gesboutm_Repl', @article N'ItemPrix', @source_owner = N'dbo', @source_object = N'ItemPrix', @type N'table', @description = null,

@column_tracking = N'true', @pre_creation_cmd = N'drop', @creation_script null, @schema_option = 0x000000000000CFF1, @article_resolver = null, @subset_filterclause = null,

@vertical_partition = N'true', @destination_owner = N'dbo', @auto_identity_range = N'false', @verify_resolver_signature = 0, @allow_interactive_resolver = N'false',

@fast_multicol_updateproc = N'true', @check_permissions = 0 GO

-- Adding the article's partition column(s) exec sp_mergearticlecolumn @publication = N'gesboutm_Repl', @article N'ItemPrix', @column = N'XXXXX', @operation = N'add' GO

-- Repeat the above for all columsn in tables

-- Adding the merge articles exec sp_addmergearticle @publication = N'gesboutm_Repl', @article N'ItemPrixRemise', @source_owner = N'dbo', @source_object = N'Voucher', @type = N'table', @description = null,

@column_tracking = N'true', @pre_creation_cmd = N'drop', @creation_script null, @schema_option = 0x000000000000CFF1, @article_resolver = null, @subset_filterclause = null,

@vertical_partition = N'true', @destination_owner = N'dbo', @auto_identity_range = N'false', @verify_resolver_signature = 0, @allow_interactive_resolver = N'false',

@fast_multicol_updateproc = N'true', @check_permissions = 0 GO

exec sp_mergearticlecolumn @publication = N'gesboutm_Repl', @article N'ItemPrixRemise', @column = N'XXXXX', @operation = N'add' GO

-- Repeat the above for all columsn in tables

-- Adding the merge subscription exec sp_addmergesubscription @publication = N'gesboutm_Repl', @subscriber N'AURES_1542', @subscriber_db = N'RMS_OFF', @subscription_type = N'push', @subscriber_type = N'local',

@subscription_priority = 0.000000, @sync_type = N'none', @frequency_type 4, @frequency_interval = 1, @frequency_relative_interval = 1, @frequency_recurrence_factor = 0,

@frequency_subday = 8, @frequency_subday_interval = 1, @active_start_date 0, @active_end_date = 0, @active_start_time_of_day = 0, @active_end_time_of_day = 235959,

@enabled_for_syncmgr = N'false', @offloadagent = 0, @use_interactive_resolver = N'false' GO

Also remember above I just added the example of one column of each tables you send to me. there are some other stuff can be done also. I better suggest that I have remote client RDP and will connect to your server to serve you. if you want.

Let me know if require any more help.

"Math" wrote:

Reply to
Akber Alwani

I thank you, I suspected that it was necessary to use a publication but I was not on.

I used your script and that works very decently after some modification.

Thank you.

Math

"Akber Alwani" wrote:

Reply to
Math

@type

Reply to
Akber Alwani

BeanSmart website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.