dbTalk Databases Forums  

Replication errors - vicious circle

microsoft.public.sqlserver.replication microsoft.public.sqlserver.replication


Discuss Replication errors - vicious circle in the microsoft.public.sqlserver.replication forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
TahoePete
 
Posts: n/a

Default Replication errors - vicious circle - 01-19-2006 , 07:27 PM






When I try to create a transactional publication, when I select the table I
want to replicate, I get the error "This table cannot be published because it
does not have a primary key column. Primary key columns are required for all
tables in transactional publications".

Then When I try to make the necessary changes to the table, such as adding a
column for the primary key, I get the error "Unable to modify table. Cannot
drop the table "tablename" because it is being used for replication."

I have never successfully replicated this table or any other. I can find no
evidence of any publications to remove.

I'm stuck!


Reply With Quote
  #2  
Old   
TahoePete
 
Posts: n/a

Default RE: Replication errors - vicious circle - 01-19-2006 , 08:53 PM






Just answered my own question after reading thru a ton of posts on this forum.

"run sp_removedbreplication on each database..."

Thanks Paul Ibison!



"TahoePete" wrote:

Quote:
When I try to create a transactional publication, when I select the table I
want to replicate, I get the error "This table cannot be published because it
does not have a primary key column. Primary key columns are required for all
tables in transactional publications".

Then When I try to make the necessary changes to the table, such as adding a
column for the primary key, I get the error "Unable to modify table. Cannot
drop the table "tablename" because it is being used for replication."

I have never successfully replicated this table or any other. I can find no
evidence of any publications to remove.

I'm stuck!


Reply With Quote
  #3  
Old   
Hilary Cotter
 
Posts: n/a

Default Re: Replication errors - vicious circle - 01-19-2006 , 09:01 PM



Issue the following statements

sp_MSunmarkreplinfo 'ProblemTableName'

Then you need to update the colstat column

sp_configure 'allow updates', 1
go
reconfigure with override
go
UPDATE syscolumns
SET colstat = colstat & ~4096
WHERE colstat & 4096 <>0
go
sp_configure 'allow updates', 2
go
reconfigure with override
go


--
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

"TahoePete" <TahoePete (AT) discussions (DOT) microsoft.com> wrote

Quote:
When I try to create a transactional publication, when I select the table
I
want to replicate, I get the error "This table cannot be published because
it
does not have a primary key column. Primary key columns are required for
all
tables in transactional publications".

Then When I try to make the necessary changes to the table, such as adding
a
column for the primary key, I get the error "Unable to modify table.
Cannot
drop the table "tablename" because it is being used for replication."

I have never successfully replicated this table or any other. I can find
no
evidence of any publications to remove.

I'm stuck!




Reply With Quote
  #4  
Old   
TahoePete
 
Posts: n/a

Default Re: Replication errors - vicious circle - 01-20-2006 , 11:34 AM



I receive the error "ad hoc updates to system catalogues are not allowed"
from the update command.

"Hilary Cotter" wrote:

Quote:
Issue the following statements

sp_MSunmarkreplinfo 'ProblemTableName'

Then you need to update the colstat column

sp_configure 'allow updates', 1
go
reconfigure with override
go
UPDATE syscolumns
SET colstat = colstat & ~4096
WHERE colstat & 4096 <>0
go
sp_configure 'allow updates', 2
go
reconfigure with override
go


--
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

"TahoePete" <TahoePete (AT) discussions (DOT) microsoft.com> wrote in message
news:346CE295-5031-45F3-90DA-9CA7A25424A5 (AT) microsoft (DOT) com...
When I try to create a transactional publication, when I select the table
I
want to replicate, I get the error "This table cannot be published because
it
does not have a primary key column. Primary key columns are required for
all
tables in transactional publications".

Then When I try to make the necessary changes to the table, such as adding
a
column for the primary key, I get the error "Unable to modify table.
Cannot
drop the table "tablename" because it is being used for replication."

I have never successfully replicated this table or any other. I can find
no
evidence of any publications to remove.

I'm stuck!





Reply With Quote
  #5  
Old   
Hilary Cotter
 
Posts: n/a

Default Re: Replication errors - vicious circle - 02-01-2006 , 04:12 AM



I'm not sure what is wrong here - this command should enable this

sp_configure 'allow updates', 1
go
reconfigure with override
go


--
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

"TahoePete" <TahoePete (AT) discussions (DOT) microsoft.com> wrote

Quote:
I receive the error "ad hoc updates to system catalogues are not allowed"
from the update command.

"Hilary Cotter" wrote:

Issue the following statements

sp_MSunmarkreplinfo 'ProblemTableName'

Then you need to update the colstat column

sp_configure 'allow updates', 1
go
reconfigure with override
go
UPDATE syscolumns
SET colstat = colstat & ~4096
WHERE colstat & 4096 <>0
go
sp_configure 'allow updates', 2
go
reconfigure with override
go


--
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

"TahoePete" <TahoePete (AT) discussions (DOT) microsoft.com> wrote in message
news:346CE295-5031-45F3-90DA-9CA7A25424A5 (AT) microsoft (DOT) com...
When I try to create a transactional publication, when I select the
table
I
want to replicate, I get the error "This table cannot be published
because
it
does not have a primary key column. Primary key columns are required
for
all
tables in transactional publications".

Then When I try to make the necessary changes to the table, such as
adding
a
column for the primary key, I get the error "Unable to modify table.
Cannot
drop the table "tablename" because it is being used for replication."

I have never successfully replicated this table or any other. I can
find
no
evidence of any publications to remove.

I'm stuck!







Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.