Solved

SQL2000 CE ambiguous column name rowguid.

Posted on 2004-04-19
2
536 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
I have a large data set and a SSIS package. How can I load this file in multi threading?
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

828 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