Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
More on Failed to enable constraints
Message
From
19/03/2008 00:05:53
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
01302826
Message ID:
01303257
Views:
23
>This comment from the blog mentioned in another reply sounds like exactly your issue, but no resolution proposed:
>==============================================================================
>The same issue came up only when we upgrade the db to SQL Server 2005 for 2000, while the middle tier is always using .NET 2.0.
>
>As an example, one of the problematic sproc uspGetOrderItem is like:
>
>Select o.orderid, i.ItemName, i.Qty
>
>From order o join orderitem i on o.orderid = i.orderid.
>
>I replaced o.orderid in the select list with i.orderid. NO other code change at middle tier, and it worked! I feel lucky, but I cannot think of any reason why it worked on SQL Server 2000 but not on SQL Server 2005.
>
>Can someone help?
>==================================================
>And reading other comments it looks like it's not really a serious issue and perhaps can be simply ignored (of course, if none of the proposed solutions will work).

Yes, I thought about that as well. Because it doesn't like the master primary key to appear more than once, I thought about using the foreign key instead in the SQL result.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform