Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7568251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:52:38+00:00 2026-05-30T14:52:38+00:00

For the first time I am trying to create a DataSet/TableAdapter in the VS2010

  • 0

For the first time I am trying to create a DataSet/TableAdapter in the VS2010 DataSet Designer using a query with a join and function; NVL(). Typically I had only used single database tables by dragging them to the designer workspace from the server explorer.
In this case I right-clicked and added a TableAdapter and entered the following query:

SELECT a.primary_key, NVL(a.message, b.subject) as subject
FROM TableA a, TableB b
WHERE a.primary_key = b.primary_key (+) 
AND (a.time_stamp BETWEEN :time_start AND :time_end);

The DataTable was created with the appropriate columns. The issue is that when attempting to execute the query on the TableAdapter I am given the error:

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

I don’t see anything unusual in the properties of the individual columns. What am I missing?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T14:52:40+00:00Added an answer on May 30, 2026 at 2:52 pm

    most likely it’s left outer join and the FROM clause is missing.

    Last time these things happened to me when there were no rows returned for b, but it was too long ago, I have even forgotten the old join syntax… run the query in query analyser or ssms and tell us 🙂

    and this query too:

    select count(1) from tableB where primary_key not in (select primary_key from tableA) 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying, for the first time, to create a GUI in Ruby using Tk.
I'm using Rhino.Mocks 3.6 for the first time. I'm trying to create a stub
This is my first time using a webservice and I' trying to create a
This is my first time using XSLT. I'm trying to create a file that
First time using rails, I'm trying to create a download link to get something
First time trying to deal with users logging in with ASP.net and haven't had
This is my first time working with python. I'm trying to create a dictionary
Sorry this is my first time trying to create a plugin, so I might
i'm trying to create a cursor for the first time. I have looked at
I'm trying to create a popup window that only appears the first time the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.