all groups > sql server replication > july 2006 >
You're in the

sql server replication

group:

Add Column to Replicated Table


Add Column to Replicated Table Simon
7/21/2006 12:55:03 PM
sql server replication:
Hey gang,

I am trying to add a column to a replicated table and am a bit confused at
the syntax that goes into the Column definition.

I need to add a datatype which in design view on other tables looks like:

DefaultTimeDataType (char) with a length of 8

But according to the "Add Column to Replicated Table" docs I've looked up
the length goes into the brackets. So how do I type this?

Any help would be greatly appreciated.

Re: Add Column to Replicated Table Hilary Cotter
7/21/2006 4:23:39 PM
sp_repladdcolumn 'MyTable','DefaultTimeDataType','char(8)'

--
Hilary Cotter
Director of Text Mining and Database Strategy
RelevantNOISE.Com - Dedicated to mining blogs for business intelligence.

This posting is my own and doesn't necessarily represent RelevantNoise's
positions, strategies or opinions.

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]

Re: Add Column to Replicated Table Amish Shah
7/22/2006 5:18:01 AM
If you are using 2k5 then you can do this by adding column
column directly to the table either using alter column or using
Management Studio in most of cases.

Regards
Amish shah


AddThis Social Bookmark Button