Solved

SQL2000 CE ambiguous column name rowguid.

Posted on 2004-04-19
2
538 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

729 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