Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2004.08.29;
Скачать: CL | DM;

Вниз

MSSQL 2000 Не могу добавить поле в таблицу из-за репликации   Найти похожие ветки 

 
KAA   (2004-08-04 11:46) [0]

Есть база, которая реплицируется на другой сервер, вернее там сделана репликация, но в данный момент она не запущена. В одной из таблиц мне понадобилось добавить текствовое поле, но он сохраняет новую таблицу только если длина поля будет 50 символов (не больше не меньше), и это поле будет последним в таблице. В противном случае выдает ошибку:
ODBC error: [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot drop the table "dbo.Descript" because it is being used for replication.В чем может быть проблема? Как изменить таблицу?


 
Nikolay M. ©   (2004-08-04 12:08) [1]

Попробуй порыться в
http://www.mcse.ms/archive95-2004-5.html
Еще, возможно, не хватает прав у подписчика для пересоздания таблицы?
И вот выдрано с одного форума, суть сводится к тому, что репликацию таки придется пересоздавать:

Unable to drop a table even after removing replication. I"m getting the following errors, when I try to drop or alter the table:
Server: Msg 3724, Level 16, State 2, Line 1
Cannot drop the table "t1" because it is published for replication.
Server: Msg 4931, Level 16, State 1, Line 1
Cannot add columns to table "t1" because it is being published for merge replication.
Is there a way out?

To avoid this situation, you should always remove replication in the following order:

- Delete the subscriptions
- Delete the publications
- Disable publishing

Deleting publications without unsubscribing or disabling publishing without deleting publications results in this situation.

Anyways, if you are seeing the above mentioned errors, try any or all of the below workarounds one after another in the order described below.

1. EXEC sp_removedbreplication "your_database_name"

2. Execute the following procedure on the problematic database and pass the table name as the parameter:

EXEC sp_msunmarkreplinfo "your_table_name"

3. You may not need this method, but take this as a last resort.

EXEC sp_configure "allow",1
go
reconfigure with override
go
use your_database_name
go
update sysobjects set replinfo = 0 where name = "your_table_name"
go
EXEC sp_configure "allow",0
go
reconfigure with override
go

NOTE: If you don"t follow the proper replication removal order, you may see the same problem with replicated stored procedures!

(Same problem can occur with replicated stored procedures)



Страницы: 1 вся ветка

Текущий архив: 2004.08.29;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.051 c
6-1087963813
Furyous
2004-06-23 08:10
2004.08.29
Проблема с разрывом socket соединения


8-1086612981
Serg_M
2004-06-07 16:56
2004.08.29
Эрозия и Наращивание


14-1092289956
Кириешки
2004-08-12 09:52
2004.08.29
Чем отличается CloseProcess от Terminate Process?


1-1092382403
Iconka
2004-08-13 11:33
2004.08.29
Какая разница? Const или нет


1-1092569716
my_name
2004-08-15 15:35
2004.08.29
текст строки, зная ее номер