Solved

SQL2000 CE ambiguous column name rowguid.

Posted on 2004-04-19
2
528 Views
Last Modified: 2012-08-13
I have a hand help application that is using merge rep from SQL 2K CE to my SQL 2000 Server with a dynamic filter. I can connect to the database and download my copy of the data and everything works fine, however, the first time I sync after the initial download I get "ambiguous column name rowguid" I have deleted the publication and have started over and I get the same error. I have tried with two different hand helds and I get the same error. I have service pack 3a on my SQL server and the patch for SQL CE to support the 3a service pack installed on the server. I have no updates installed on the hand held and I am not aware of one being available. Any ideas?

Jeff
0
Comment
Question by:jwatling
2 Comments
 

Accepted Solution

by:
ruthjohnson earned 250 total points
ID: 10864112
This happened to me before... in production.  Check the tables in the publication.  Chances are you have more than one field of data type rowguid in one of the tables.  It will be called rowguid9 or something like that.  There is a bug in the system stored procedures for Merge Replication that causes it to error out if there is more than one rowguid field even if they don't have the same name.  If you have a lot of tables, you can sync with the -Output switch (see Books Online for syntax) and the resulting text file will tell you what table is throwing the error.  Since you only need one rowguid for replication to work, drop the publication and delete the extra column.  In the future, you may want to remove all rowguid columns before recreating the publication.  This is the only way I have kept the problem from re-occurring.

Ruth
0
 

Author Comment

by:jwatling
ID: 10864238
Thank you. I had two rowguid columns becuase I forgot to mark the one I created "Is rowguid - Y". It works now.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now