Главная страница
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
3-1091793315
MORA
2004-08-06 15:55
2004.08.29
блокировка грида


14-1092119052
Slider007
2004-08-10 10:24
2004.08.29
Обжимка витой пары


1-1092315402
Relaxxx
2004-08-12 16:56
2004.08.29
Почему не удаляються листы в Excel???


8-1086784992
karlsn
2004-06-09 16:43
2004.08.29
проблема c SndSoundPlay();


1-1092298514
Vss
2004-08-12 12:15
2004.08.29
Найти курсор не кликая