Groups | Blog | Home
all groups > sql server replication > december 2005 >

sql server replication : can only set up snapshot & merge replication


Hilary Cotter
12/7/2005 7:13:06 AM
are you running msde?

--
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com

[quoted text, click to view]

maxzsim via SQLMonster.com
12/7/2005 10:45:24 AM
Hi ,

I found that i could only set up a db in the server as either a
snapshot/merger replication with the transactional replication greyed out


any reason why i am not able to make it a transactional replication ?

tks & rdgs

--
Message posted via SQLMonster.com
Paul Ibison
12/7/2005 2:42:22 PM
.... or personal edition?
Paul Ibison


[quoted text, click to view]

maxzsim via SQLMonster.com
12/12/2005 1:06:16 AM
Hi ,

i am running sql server 2000 standard edition

rdgs

[quoted text, click to view]

--
Paul Ibison
12/12/2005 2:01:02 AM
Is there an error when you run this:
sp_dboption @dbname = 'database'
, @optname = 'published'
, @optvalue = 'true'
Or are you possibly referring to the articles being greyed out (this is
because of a lack of a Primary key).
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
maxzsim via SQLMonster.com
12/13/2005 8:54:00 AM
Hi Paul,

there's no error and i got "Published" returned

tks & rdgs
[quoted text, click to view]

--
Message posted via SQLMonster.com
Paul Ibison
12/14/2005 8:23:06 PM
Please can you run the following code in your database. All you need to do
is a find and replace - change Region to a table name that has a PK. If
there are any messages, please post them back.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)

-- Adding the transactional publication
exec sp_addpublication @publication = N'TestPublication', @restricted =
N'false', @sync_method = N'native', @repl_freq = N'continuous', @description
= 'test', @status = N'active', @allow_push = N'true', @allow_pull = N'true',
@allow_anonymous = N'false', @enabled_for_internet = N'false',
@independent_agent = N'false', @immediate_sync = N'false', @allow_sync_tran
= N'false', @autogen_sync_procs = N'false', @retention = 336,
@allow_queued_tran = N'false', @snapshot_in_defaultfolder = N'true',
@compress_snapshot = N'false', @ftp_port = 21, @ftp_login = N'anonymous',
@allow_dts = N'false', @allow_subscription_copy = N'false',
@add_to_active_directory = N'false', @logreader_job_name = N'TestPI-4'

exec sp_addpublication_snapshot @publication =
N'TestPublication',@frequency_type = 4, @frequency_interval = 1,
@frequency_relative_interval = 0, @frequency_recurrence_factor = 1,
@frequency_subday = 1, @frequency_subday_interval = 0, @active_start_date =
0, @active_end_date = 0, @active_start_time_of_day = 230000,
@active_end_time_of_day = 0, @snapshot_job_name =
N'TestPI-TestPublication-11'
GO

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

-- Adding the transactional articles
exec sp_addarticle @publication = N'TestPublication', @article = N'Region',
@source_owner = N'dbo', @source_object = N'Region', @destination_table =
N'Region', @type = N'logbased', @creation_script = null, @description =
null, @pre_creation_cmd = N'drop', @schema_option = 0x00000000000000F3,
@status = 16, @vertical_partition = N'false', @ins_cmd = N'CALL
sp_MSins_Region', @del_cmd = N'CALL sp_MSdel_Region', @upd_cmd = N'MCALL
sp_MSupd_Region', @filter = null, @sync_object = null, @auto_identity_range
= N'false'
GO


maxzsim via SQLMonster.com
12/15/2005 5:00:05 AM
Hi Paul , when i ran ur script against the db that i want to create the
publication i got the following.

i am not sure abt the part that this edition does not support because i am
using the standard edition or how can i check the edition of my SQL Server ?
could be service pack issue ?

=======================================================
Server: Msg 21108, Level 16, State 1, Procedure sp_addpublication, Line 275
This edition of SQL Server does not support transactional publications.
Server: Msg 15001, Level 11, State 1, Procedure sp_addpublication_snapshot,
Line 117
Object 'TestPublication' does not exist or is not a valid object for this
operation.
Server: Msg 20026, Level 16, State 1, Procedure sp_MSpublication_access, Line
42
The publication 'TestPublication' does not exist.
Server: Msg 20026, Level 16, State 1, Procedure sp_MSpublication_access, Line
42
The publication 'TestPublication' does not exist.
Server: Msg 20026, Level 16, State 1, Procedure sp_MSpublication_access, Line
42
The publication 'TestPublication' does not exist.
Server: Msg 14027, Level 11, State 1, Procedure sp_addarticle, Line 478
TestPublication does not exist in the current database.

=======================================================

tks & rdgs

[quoted text, click to view]

--
Message posted via SQLMonster.com
maxzsim via SQLMonster.com
12/15/2005 5:08:26 AM
Hi

i am not too sure where to check the edition of the SQL server but below is
the version of the SQL from "SELECT @@version"

Microsoft SQL Server 2000 - 8.00.194 (Intel X86)
Aug 6 2000 00:57:48
Copyright (c) 1988-2000 Microsoft Corporation
Desktop Engine on Windows NT 5.1 (Build 2600: Service Pack 2)


tks & rdgs

[quoted text, click to view]

--
Message posted via SQLMonster.com
Paul Ibison
12/16/2005 9:00:37 AM
You're using MSDE (not 'Standard':)).
You'll need to change edition of SQL Server.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)

AddThis Social Bookmark Button