Solved

Replication Error: Ambiguous Column Name

Posted on 2006-07-05
7
682 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
  • 4
  • 3
7 Comments
 
LVL 21

Accepted Solution

by:
Kevin3NF earned 375 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

This article explains all about SQL Server Piecemeal Restore with examples in step by step manner.
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

856 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