Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 19th, 2003, 03:14 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
Default Failed to enable constraints. One or more rows con

I'm getting this error from my .NET code simply trying to issue the following SQL Server select statement to an Adapter and fill a dataset.

SELECT * from vwResultsCompare where UserId='123456' and SurveyID=3

It works fine in SQL EM, so the problem appears to be in the .NET environment. There are no EXPLICIT constraints on the view AFAIK - it simply joins two tables. The dataset has been cleared prior to the Fill call. I don't understand how there can be constraints on a Select statement for a view, or why .NET should object when SQL EM does not.

What am I doing wrong?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Enable Update and Enable Delete check boxes don't mihabib ASP.NET 2.0 Basics 2 December 7th, 2006 11:44 AM
How do you suspend constraints? Aaron Edwards SQL Server 2005 2 July 31st, 2006 12:16 PM
Tricks with Constraints ebsutherla SQL Server 2000 3 June 6th, 2004 05:28 AM
Failed to enable constraints ysu_computer_lab VS.NET 2002/2003 1 November 4th, 2003 11:19 AM
Can somebody please Failed to enable contraints? Ron Howerton VS.NET 2002/2003 6 September 22nd, 2003 11:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.