[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 543
  • Last Modified:

SQL2000 CE ambiguous column name rowguid.

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
jwatling
Asked:
jwatling
1 Solution
 
ruthjohnsonCommented:
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
 
jwatlingAuthor Commented:
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

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now