Hello Pedro,
I've run your scripts on my test server with out experiencing the problem
you indicated in your message. So what I would like you to do is look at
the publisher and subscriber and see if you have two sets of stored
procedures for inserts, updates and deletes. They should begin with
sp_insxxxxxxxxxxx, sp_selxxxxxxxxxxxxx, sp_updxxxxxxxxx. I'm thinking the
stored procedure might not have been created or not created correctly. I
want to assure you that what you are doing is possible and can be done
without problems.
thanks
debbie
--------------------
| From: pedro.felix@mail.com (Pedro Felix)
| Newsgroups: microsoft.public.sqlserver.replication
| Subject: after exec sp_addmergearticle sp_addmergefilter snapshot gives
invalid column
| Date: 18 Sep 2003 11:00:19 -0700
| Organization:
http://groups.google.com/ | Lines: 292
| Message-ID: <1efd55b0.0309181000.4732d851@posting.google.com>
| NNTP-Posting-Host: 194.30.112.3
| Content-Type: text/plain; charset=ISO-8859-1
| Content-Transfer-Encoding: 8bit
| X-Trace: posting.google.com 1063908020 16455 127.0.0.1 (18 Sep 2003
18:00:20 GMT)
| X-Complaints-To: groups-abuse@google.com
| NNTP-Posting-Date: 18 Sep 2003 18:00:20 GMT
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
e.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cyclone.bc.net!sjc70.we
busenet.com!news.webusenet.com!sn-xit-02!sn-xit-06!sn-xit-05!sn-xit-09!super
news.com!postnews1.google.com!not-for-mail
| Xref: cpmsftngxa06.phx.gbl microsoft.public.sqlserver.replication:43486
| X-Tomcat-NG: microsoft.public.sqlserver.replication
|
| Hi,
|
| I'm a system integrator and I'm using oracle lite 9i with 200 users
| with PPC in our solution for 2 years!
|
| We are going worldwide in our costumer with this solution and we are
| evaluating SQLSERVER2K & SQLCE as an alternative!
|
| I'm having some problems with Replication tests in SQLSERVER SP3a!
|
| Our problem is: In oracle we can manage to add and change publications
| without the user even suspect that something has changed. So we are
| able to add, change and drop articles without loosing anything or even
| initialize the replication!
| The costumer don't want to loose this so I'm trying to test it and I'm
| stuck in this:
|
| After Creating a publication for my Database with one table (Clients)
| and sync with a PPC 2000/2002. I receive the desired table and data!
| In server after adding another table (Contacts) and try to run the
| snapshot I receive "Invalid column name 'ClientID'".
|
| My steps to get there were:
|
| use [SFA]
| GO
|
| -- Dropping the merge publication
| exec sp_dropmergepublication
| @publication = N'SFA'
| GO
|
| -- Enabling the replication database
| use master
| GO
|
| exec sp_replicationdboption
| @dbname = N'SFA',
| @optname = N'merge publish',
| @value = N'true'
| GO
|
| use [SFA]
| GO
|
| -- Adding the merge publication
| exec sp_addmergepublication
| @publication = N'SFA',
| @description = N'Merge publication of SFA database from Publisher
| PFELIX.',
| @retention = 14,
| @sync_mode = N'character',
| @allow_push = N'true',
| @allow_pull = N'true',
| @allow_anonymous = N'true',
| @enabled_for_internet = N'false',
| @centralized_conflicts = N'true',
| @dynamic_filters = N'true',
| @snapshot_in_defaultfolder = N'true',
| @compress_snapshot = N'false',
| @ftp_port = 21,
| @ftp_login = N'anonymous',
| @conflict_retention = 14,
| @keep_partition_changes = N'true',
| @allow_subscription_copy = N'false',
| @allow_synctoalternate = N'false',
| @validate_subscriber_info = N'HOST_NAME()',
| @add_to_active_directory = N'false',
| @max_concurrent_merge = 0,
| @max_concurrent_dynamic_snapshots = 0
|
| exec sp_addpublication_snapshot
| @publication = N'SFA',
| @frequency_type = 4,
| @frequency_interval = 1,
| @frequency_relative_interval = 1,
| @frequency_recurrence_factor = 0,
| @frequency_subday = 1,
| @frequency_subday_interval = 5,
| @active_start_date = 0,
| @active_end_date = 0,
| @active_start_time_of_day = 500,
| @active_end_time_of_day = 235959,
| @snapshot_job_name = N'PFELIX-SFA-SFA-8'
| GO
|
| exec sp_grant_publication_access
| @publication = N'SFA',
| @login = N'BUILTIN\Administrators'
| GO
| exec sp_grant_publication_access
| @publication = N'SFA',
| @login = N'distributor_admin'
| GO
| exec sp_grant_publication_access
| @publication = N'SFA',
| @login = N'sa'
| GO
|
| exec sp_addmergearticle
| @publication = N'SFA',
| @article = N'Client',
| @source_owner = N'dbo',
| @source_object = N'Client',
| @type = N'table',
| @description = null,
| @column_tracking = N'true',
| @pre_creation_cmd = N'drop',
| @creation_script = null,
| @schema_option = 0x000000000000CFF1,
| @article_resolver = null,
| @subset_filterclause = N'SalesRepID = HOST_NAME()',
| @vertical_partition = N'false',
| @destination_owner = N'dbo',
| @auto_identity_range = N'false',
| @verify_resolver_signature = 0,
| @allow_interactive_resolver = N'false',
| @fast_multicol_updateproc = N'true',
| @check_permissions = 0
| GO
|
|
----------------------------------------------------------------------------
----
|
----------------------------------------------------------------------------
----
| OK - Run the Snapshot on the SQL Server Enterprise Manager
| OK - Sync with handheld (Got the Client Table and Data)
|
----------------------------------------------------------------------------
----
|
----------------------------------------------------------------------------
----
|
| -- Adding the merge articles
| exec sp_addmergearticle
| @publication = N'SFA',
| @article = N'Contact',
| @source_owner = N'dbo',
| @source_object = N'Contact',
| @type = N'table',
| @description = null,
| @column_tracking = N'true',
| @pre_creation_cmd = N'drop',
| @creation_script = null,
| @schema_option = 0x000000000000CFF1,
| @article_resolver = null,
| @subset_filterclause = null,
| @vertical_partition = N'false',
| @destination_owner = N'dbo',
| @auto_identity_range = N'false',
| @verify_resolver_signature = 0,
| @allow_interactive_resolver = N'false',
| @fast_multicol_updateproc = N'true',
| @check_permissions = 3,
| @force_invalidate_snapshot = 1
| GO
|
| -- Adding the article subset filter
| exec sp_addmergefilter
| @publication = N'SFA',
| @article = N'Contact',
| @filtername = N'Contact_Client',
| @join_articlename = N'Client',
| @join_filterclause = N'[Contact].[ClientID]=[Client].[ClientID]',
| @join_unique_key = 0,
| @force_invalidate_snapshot = 1,
| @force_reinit_subscription = 1
| GO
|
|
|
----------------------------------------------------------------------------