Unix Technical Forum

[help] ALTER TABLE: error message 4929

This is a discussion on [help] ALTER TABLE: error message 4929 within the SQL Server forums, part of the Microsoft SQL Server category; --> Hi, I’ve the following error message: --------------- ALTER TABLE [dbo].[AnagraficoAutomezzi] ALTER COLUMN [CodiceXTrascodifica] varchar(10) Go Server: messaggio 4929, livello ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-29-2008, 09:32 PM
Giacomo
 
Posts: n/a
Default [help] ALTER TABLE: error message 4929


Hi,

I’ve the following error message:

---------------
ALTER TABLE [dbo].[AnagraficoAutomezzi]
ALTER COLUMN [CodiceXTrascodifica] varchar(10)
Go

Server: messaggio 4929, livello 16, stato 1, riga 1
Cannot alter table ‘AnagraficoAutomezzi’ because it is being published for
replication.
---------------

This is only part of a script with much more alter table…

How can I lunch the script without this problem?

Thanks for your help!
Giacomo


--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-29-2008, 09:32 PM
MC
 
Posts: n/a
Default Re: [help] ALTER TABLE: error message 4929

Well, you cant alter schema involved in replication all that easily. For
this, you can use sp_addmergecolumn (not certain if the name is correct but
its close). If you post other code samples we can try to see what can be
done


MC


"Giacomo" <no_spam@grazie.it> wrote in message
newsp.tgst4zpwt6znx9@tpprog002.ccvtech.com...
>
> Hi,
>
> I've the following error message:
>
> ---------------
> ALTER TABLE [dbo].[AnagraficoAutomezzi]
> ALTER COLUMN [CodiceXTrascodifica] varchar(10)
> Go
>
> Server: messaggio 4929, livello 16, stato 1, riga 1
> Cannot alter table 'AnagraficoAutomezzi' because it is being published for
> replication.
> ---------------
>
> This is only part of a script with much more alter table.
>
> How can I lunch the script without this problem?
>
> Thanks for your help!
> Giacomo
>
>
> --
> Using Opera's revolutionary e-mail client: http://www.opera.com/mail/



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-29-2008, 09:32 PM
Giacomo
 
Posts: n/a
Default Re: [help] ALTER TABLE: error message 4929

I've no more code sample to post, it's just a script with some ALTER TABLE
to change columns name or type.
We use this script to update client's DB. But one of them use replication
and we are always in trouble to update this DB.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-29-2008, 09:32 PM
Dan Guzman
 
Posts: n/a
Default Re: [help] ALTER TABLE: error message 4929

One of the downsides to replication is that is complicates subsequent schema
changes. As ML mentioned, you need to run the appropriate sp_repl* procs
instead of ALTER TABLE. The details vary depending on the type of
replication and the changes you are making.

If your client established replication outside the scope of your normal
support agreement, I suggest you have then remove replication so that your
normal script can be run and then reestablish replication afterwards. It's
unreasonable to expect your upgrade script to handle a replicated schema
unless you have detailed knowledge of the replication topology.

--
Hope this helps.

Dan Guzman
SQL Server MVP

"Giacomo" <no_spam@grazie.it> wrote in message
newsp.tgt5pk06t6znx9@tpprog002.ccvtech.com...
> I've no more code sample to post, it's just a script with some ALTER TABLE
> to change columns name or type.
> We use this script to update client's DB. But one of them use replication
> and we are always in trouble to update this DB.



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 03-01-2008, 12:20 PM
MC
 
Posts: n/a
Default Re: [help] ALTER TABLE: error message 4929

Just to add something to my previous response. You could try using EM to
implement some of the changes, however I really wouldnt recommend this.
Changing schema for database involved in replication isnt something you
should do lightly.
Thats why I asked if you could post additional code that doesnt work for you
so we could suggest something.


MC

PS. Dan, its MC (Marko Culo) .

"Dan Guzman" <guzmanda@nospam-online.sbcglobal.net> wrote in message
news:i4sUg.1248$NE6.754@newssvr11.news.prodigy.com ...
> One of the downsides to replication is that is complicates subsequent

schema
> changes. As ML mentioned, you need to run the appropriate sp_repl* procs
> instead of ALTER TABLE. The details vary depending on the type of
> replication and the changes you are making.
>
> If your client established replication outside the scope of your normal
> support agreement, I suggest you have then remove replication so that your
> normal script can be run and then reestablish replication afterwards.

It's
> unreasonable to expect your upgrade script to handle a replicated schema
> unless you have detailed knowledge of the replication topology.
>
> --
> Hope this helps.
>
> Dan Guzman
> SQL Server MVP
>
> "Giacomo" <no_spam@grazie.it> wrote in message
> newsp.tgt5pk06t6znx9@tpprog002.ccvtech.com...
> > I've no more code sample to post, it's just a script with some ALTER

TABLE
> > to change columns name or type.
> > We use this script to update client's DB. But one of them use

replication
> > and we are always in trouble to update this DB.

>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 03-01-2008, 12:20 PM
Dan Guzman
 
Posts: n/a
Default Re: [help] ALTER TABLE: error message 4929

> PS. Dan, its MC (Marko Culo) .

Oops. Sorry, Marko.

--
Hope this helps.

Dan Guzman
SQL Server MVP

"MC" <marko_culoNOSPAM@yahoo.com> wrote in message
news:eg0r1t$bqq$1@ss408.t-com.hr...
> Just to add something to my previous response. You could try using EM to
> implement some of the changes, however I really wouldnt recommend this.
> Changing schema for database involved in replication isnt something you
> should do lightly.
> Thats why I asked if you could post additional code that doesnt work for
> you
> so we could suggest something.
>
>
> MC
>
> PS. Dan, its MC (Marko Culo) .
>
> "Dan Guzman" <guzmanda@nospam-online.sbcglobal.net> wrote in message
> news:i4sUg.1248$NE6.754@newssvr11.news.prodigy.com ...
>> One of the downsides to replication is that is complicates subsequent

> schema
>> changes. As ML mentioned, you need to run the appropriate sp_repl* procs
>> instead of ALTER TABLE. The details vary depending on the type of
>> replication and the changes you are making.
>>
>> If your client established replication outside the scope of your normal
>> support agreement, I suggest you have then remove replication so that
>> your
>> normal script can be run and then reestablish replication afterwards.

> It's
>> unreasonable to expect your upgrade script to handle a replicated schema
>> unless you have detailed knowledge of the replication topology.
>>
>> --
>> Hope this helps.
>>
>> Dan Guzman
>> SQL Server MVP
>>
>> "Giacomo" <no_spam@grazie.it> wrote in message
>> newsp.tgt5pk06t6znx9@tpprog002.ccvtech.com...
>> > I've no more code sample to post, it's just a script with some ALTER

> TABLE
>> > to change columns name or type.
>> > We use this script to update client's DB. But one of them use

> replication
>> > and we are always in trouble to update this DB.

>>
>>

>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:34 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com