Hi Friends,
I have a transactional replication setup in SQL server 2008. There are already so many publications configured.
Recently a new table whose schema is different from dbo was added as an article to existing publication using sp_addarticle stored procedure
exec sp_addarticle @publication = N'publication_name', @article = N'articlename', @source_owner = N'abc', @source_object = N'tablename', @type = N'logbased', @description = N'', @creation_script = N'', @pre_creation_cmd = N'truncate', @schema_option = 0x000000010200008F, @identityrangemanagementoption = N'manual', @destination_table = N'tablename', @destination_owner = N'abc', @status = 24, @vertical_partition = N'true', @ins_cmd = N'CALL [abc].[sp_MSins_abctablename]', @del_cmd = N'CALL [abc].[sp_MSdel_abctablename]', @upd_cmd = N'SCALL [abc].[sp_MSupd_abctablename]'
Above script did not throw any error. I can see the article was added to the publication, but when i look at the new article's properties, the insert,update,delete call stored procedures where mapped like these , but i can't find them in the subscriber DB also.
[dbo].[abc].[sp_MSins_abctablename], [dbo].[abc].[sp_MSupd_abctablename], [dbo].[abc].[sp_MSdel_abctablename]
Also now my distribution agent job is failing with below error,
DROP PROCEDURE' does not allow specifying the database name as a prefix to the object name. (Source: MSSQLServer, Error number: 166)Get help: http://help/166
What could be the reason and resolution for this. Does sql server tries to drop these call procedures before trying to create them, what is the way i tell sql server that these procedures has to be created as [abc].[sp_MSins_abctablename] and not as [dbo].[abc].[sp_MSins_abctablename].
Thanks