DataSet Relations based on Views?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Joe Sullivan

    #1

    DataSet Relations based on Views?

    Using C# in Visual Studios .NET, I have created a Dataset
    with 2 tables (created from an SQL Data Adapter). These
    2 tables are loaded from 2 views in SQL Server 2000. I
    am trying to create a relationship between these 2 tables
    in the DataSet, but I keep getting an error at runtime
    when executing the Fill procedure of the data adapter:

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

    I am positive that the data in the views fit this
    relation, so what I was wondering is if it has anything
    to do with the data coming from views?

    If not, then does anyone have any clues as to why I keep
    getting this error?

    Thanks,
    Joe Sullivan
Working...