Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.

Avatar of ict-torquilclark
ict-torquilclark asked on
Visual Basic.NETMicrosoft SQL Server 2005SQL
5 Comments1 Solution563 ViewsLast Modified:
I have a table adapter with the attatched SQL query in the select statement...

When I fill the tableadapter i get the error in the title


Can anybody help?

SELECT P.PolicyRef,P.PolicyNumber, UP.UnitName, S.SchemeName,C.ClientRef
FROM UnitPriceAnalysis UPA
INNER JOIN ((((FundHoldings FH 
INNER JOIN Policies P
ON FH.FKeyRef = P.PolicyRef) 
INNER JOIN UnitPrices UP 
ON FH.UnitPriceRef = UP.UnitPriceRef) 
INNER JOIN Clients C 
ON P.ClientRef=C.ClientRef) 
INNER JOIN Schemes S 
ON P.SchemeRef=S.SchemeRef) 
ON UPA.UnitPriceRef=UP.UnitPriceRef
WHERE  P.ShowOnPortfolio=1 AND FH.FKeyType=2 AND C.ClientRef = @ClientRef
ASKER CERTIFIED SOLUTION
Avatar of arnold
Commented:
This problem has been solved!
Unlock 1 Answer and 5 Comments.
See Answers