Groups | Blog | Home
all groups > sql server replication > january 2006 >

sql server replication : @bitmap was not supplied to upd procedure in transactional


SQL Replication Guy
1/19/2006 12:50:03 PM
Initially when I had setup my transactional replication I had created it with
out taking a snapshot and by synching the databases.

Now I am trying to add new table to one of my existing publication in
production by creating scripts for ins, upd and del in test server and
deploying it to subscriber but it throws an error saying
"sp_MSupd_tablenameexpects parameter '@bitmap', which was not supplied"

Inserts just work fine.

This is what i used to add-

exec sp_addarticle @publication = 'Repl_Source'
, @article = TableName
, @source_table = TableName
, @sync_object = null

exec sp_addsubscription @publication = 'Repl_Source'
, @article = TableName
, @subscriber = SERVERNAME
, @destination_db = 'Repl_Destination'


SQL Replication Guy
1/19/2006 1:36:03 PM
18 columns.


If I rememebr correctly I have tested same before a 6 months agao on
different table and i rememeber it working. Not sure what changed.

[quoted text, click to view]
SQL Replication Guy
1/19/2006 2:30:03 PM
Hi Hilary,

I think this is what thats happenening

- As I have scripted ins, upd and del scripts in dev environment by
generating them by running snapshot in transactional replication, those are
scripted with @bitmap varaiable.

- Looks like the code I have used to add subscription
exec sp_addsubscription @publication = 'Repl_Source'
, @article = TableName
, @subscriber = SERVERNAME
, @destination_db = 'Repl_Destination'
is trying for ins, upd and del procs with no @bitmap.


Instead of above code I have used
exec sp_addsubscription
@publication = Repl_Source,
@article = TableName,
@subscriber = SERVERNAME,
@destination_db = 'Repl_Destination',
@sync_type = N'automatic',
@subscription_type = N'pull',
@update_mode = N'read only'
then when i made data changes it asked for snapshot to be execute dfirst and
it created sp's at destination with out bitmap


As all my other sp's were created during initial setup with bitmap i would
like them to be in sync . rather than some with bitmap variable and some with
out..

Any advise.....



[quoted text, click to view]
Hilary Cotter
1/19/2006 4:15:53 PM
how many columns are in your table?

--
Hilary Cotter
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

"SQL Replication Guy" <SQLReplicationGuy@discussions.microsoft.com> wrote in
message news:AF5F5FE4-E43C-48C6-8FF9-9739C7C3DE62@microsoft.com...
[quoted text, click to view]

Hilary Cotter
1/19/2006 10:09:29 PM
return to your publisher and in qa change to the publication database, then
recreate your replication procs by issuing a sp_scriptpublicationcustomprocs
'publicationName'

then copy what you find in the results pane, go to the subscriber, change to
the subscription database, and paste these results into qa and run them.

--
Hilary Cotter
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

"SQL Replication Guy" <SQLReplicationGuy@discussions.microsoft.com> wrote in
message news:C261558E-58A6-4810-A5E1-AB24439B9A9E@microsoft.com...
[quoted text, click to view]

SQL Replication Guy
1/20/2006 8:59:01 AM
Hi Hilary,
I was trying several options soory could get to try your option but this
worked---

sp_addarticle
@publication = 'Repl_Source',
@article = 'TableName',
@source_object = 'TableName',
@destination_table = 'TableName',
@ins_cmd = 'call sp_MSins_TableName,
@del_cmd = 'call sp_MSdel_TableName',
@upd_cmd = 'mcall sp_MSupd_TableName', -- MCALL CREATED bitmap in UPD sp
@type = 'logbased',
@pre_creation_cmd = 'drop',
@status = 16,
@source_owner = 'dbo',
@vertical_partition = 'false',
@filter = Null,
@auto_identity_range = 'false'


and then

exec sp_addsubscription @publication = 'Repl_Source'
, @article = TableName
, @subscriber = SERVERNAME
, @destination_db = 'Repl_Destination'

[quoted text, click to view]
AddThis Social Bookmark Button