Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

sp_addarticle error You cannot specify schema_option 0x4 (script identity as identity rather than the base data type) for article

$
0
0
I am upgrading a server from SQL 2000 to 2008 r2 which is being replicated.  The original replication set up had sql 2000, sql 2008 and sql 2014 and had set up had table a on publisher 1 (sql 2000) replicated to table a subscriber 1 (sql 2008 r2 in 8.0 compat), then subscriber 1 would publish table a to subscriber 2 (sql 2014). This was done due to the version requirements of replication. Now, I am upgrading publisher 1 from sql 2000 to sql 2008 r2 and subscriber 2 will subscribe directly from publisher 1 eliminating subscriber 1. 
I have generated the replication scripts to recreate this and run into the above error 21830 noted above when I run the sp_addarticle for one of the tables. The problem is with the identity columns and the schema options. When I look at the schema options for publisher 1 it is set to 0x00000000000080A3, and when I look at schema options for subscriber 2 where I created the scripts it is set to 0x000000000803509F causing the error. My testing is restricted due to the fact that subscriber 2 (sql 2014) is not on our domain and I have no access to it. Looks like I need @identityrangemanagementoption set to 'none' but that is what is causing the error. 

Can anyone offer a sugguestion here? Thanks

Viewing all articles
Browse latest Browse all 4054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>