Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Replication Error: Ambiguous Column Name

Posted on 2006-07-05
7
Medium Priority
?
783 Views
Last Modified: 2012-06-27
I have a SQL server db that has an error when trying to synchronize.
I'ts using a snapshot publication wich is created fine but returns the error after i try to push the subscription by clicking 'start synchronizing'.
how do i debug and/or resolve this error and successfully replicate the db?
'Replication monitor' isn't providing me with much information to work with.

cheers.
0
Comment
Question by:smash_pants
[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
  • 4
  • 3
7 Comments
 
LVL 21

Accepted Solution

by:
Kevin3NF earned 1125 total points
ID: 17052879
Which agent?  Please post the full and complete error message.  You can get more by adding the following to the command line in the job that runs the failing agent:

-output c:\Agent_Log.txt -outputverboselevel 2

Change the path and filename to something appropriate to your environment.  Take these out when done troubleshooting, as they will continue to grow forever
0
 
LVL 3

Author Comment

by:smash_pants
ID: 17055238
I tried rebuilding the publication after i posted the question now i geta different error:


SourceTypeId = 4
SourceName = ODBC SQL Server Driver
ErrorCode = 0
ErrorText = I/O error while writing BCP data-file
The process could not bulk copy out of table '[dbo].[syncobj_0x4332453334443932]'.

the output parameter is on my snapshot agent.




0
 
LVL 3

Author Comment

by:smash_pants
ID: 17055303
this was just a drive space issue so we cleared some space and we're back to the original problem.
i'm going to get the debug info now.
0
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
LVL 3

Author Comment

by:smash_pants
ID: 17055337
These error details are from the distribution agent:

[7/7/2006 10:24:19 AM]SERVERNAME.SubscriptionDatabase: SET QUOTED_IDENTIFIER ON

[7/7/2006 10:24:19 AM]SERVERNAME.SubscriptionDatabase: drop procedure "spUpdateUserInfo"

[7/7/2006 10:24:19 AM]SERVERNAME.SubscriptionDatabase: CREATE PROCEDURE "spUpdateUserInfo"(
@UName varchar(20),
@Login_Username varchar(20),
@Login_Password varchar(15),
@Login_Email varchar(60),
@CustomerNum char(10),
@Company varchar(100),
@Contact varchar(60),
@Address varchar(500),
@City varchar(30),
@PostCode varchar(4),
@Phone varchar(16),
@Fax varchar(16),
@Active bit,
@Rep char(10),
@Access varchar(10),
@Parent varchar(20)
) as
update tbluserlogin
set
Login_Username =@Login_Username,
Login_Password=@Login_Password,
Login_Email=@Login_Email,
CustomerNum=@CustomerNum,
Company=@Company,
Contact=@Contact,
Address = @Address,
City =@City,
PostCode=@PostCode,
Phone =@Phone,
Fax=@Fax,
Active=@Active,
Rep=@Rep,
Access=@Access,
Parent=@Parent
from "PublicationDatabase".dbo.tblUserLogin
where Login_Username = @UName

Agent message code 20046. Ambiguous column name 'Login_Username'.
[7/7/2006 10:24:19 AM]SERVERNAME.distribution: {call sp_MSadd_distribution_history(18, 6,  ?, ?, 0, 0, 0.00, 0x01, 1, ?, 17, 0x01, 0x01)}
Adding alert to msdb..sysreplicationalerts: ErrorId = 43,
Transaction Seqno = 000002600000893800c800000001, Command ID = 17
Message: Replication-Replication Distribution Subsystem: agent SERVERNAME-PublicationDatabase-SERVERNAME-18 failed. Ambiguous column name 'Login_Username'.[7/7/2006 10:24:19 AM]SERVERNAME.distribution: {call sp_MSadd_repl_alert(3, 18,  43, 14151, ?, 17, N'SERVERNAME', N'PublicationDatabase', N'SERVERNAME', N'SubscriptionDatabase', ?)}
ErrorId = 43, SourceTypeId = 5
ErrorCode = '209'
ErrorText = 'Ambiguous column name 'Login_Username'.'
[7/7/2006 10:24:19 AM]SERVERNAME.distribution: {call sp_MSadd_repl_error(43, 0,  5, ?, N'209', ?)}

Category:SQLSERVER
Source:  SERVERNAME
Number:  209
Message: Ambiguous column name 'Login_Username'.
[7/7/2006 10:24:19 AM]SERVERNAME.SubscriptionDatabase: exec dbo.sp_MSupdatelastsyncinfo N'SERVERNAME',N'PublicationDatabase', N'', 0, 6, N'Ambiguous column name ''Login_Username''.'
Disconnecting from Subscriber 'SERVERNAME'
Disconnecting from Distributor 'SERVERNAME'
Disconnecting from Distributor History 'SERVERNAME'
0
 
LVL 21

Expert Comment

by:Kevin3NF
ID: 17055871
Go open spUpdateUserInfo in Enterprise Manager and try to parse it....something wrong in the code is causing the Create Procedure to fail onthe subscriber
0
 
LVL 3

Author Comment

by:smash_pants
ID: 17055900
Thanks to the -output c:\Agent_Log.txt -outputverboselevel 2 you told me i was able debug it my self so thanks for the help.
0
 
LVL 21

Expert Comment

by:Kevin3NF
ID: 17057582
What was the solution?
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
What we learned in Webroot's webinar on multi-vector protection.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

610 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