asked on
ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
exec sp_addarticle
@publication = N'PC_to_BOSS1',
@article = N'tblStatusCode',
@source_owner = N'dbo',
@source_object = N'tblStatusCode',
@type = N'logbased',
@description = N'',
@creation_script = N'',
@pre_creation_cmd = N'drop',
@schema_option = 0x40000000,
@auto_identity_range = N'false',
@destination_table = N'tblStatusCode',
@status = 16,
@vertical_partition = N'false',
@ins_cmd = N'CALL sp_MSins_tblStatusCode',
@del_cmd = N'CALL sp_MSdel_tblStatusCode',
@upd_cmd = N'MCALL sp_MSupd_tblStatusCode'
DECLARE @schema_option binary(8)
SET @schema_option = 0x40000000
IF @schema_option = CAST(0x0000000040000000 AS binary(8))
SELECT 'They are equal'
ELSE
SELECT 'They are not equal'
IF CAST(@schema_option AS integer) & CAST(0x40000000 AS integer) > 0
SELECT 'Replicate permissions bit is set.'
ELSE
SELECT 'Replicate permissions bit is set.'
ASKER
Microsoft SQL Server is a suite of relational database management system (RDBMS) products providing multi-user database access functionality.SQL Server is available in multiple versions, typically identified by release year, and versions are subdivided into editions to distinguish between product functionality. Component services include integration (SSIS), reporting (SSRS), analysis (SSAS), data quality, master data, T-SQL and performance tuning.
TRUSTED BY
ASKER
i am able to set it in the destination.. but if i set it in source, will be gets trasmitted?
(this way, if the same user needs that permission in several servers, where the database is being replicated, it will be easy and efficient)