Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SqlDataAdapter - Updatable Views
Message
From
25/10/2003 03:57:49
Keith Payne
Technical Marketing Solutions
Florida, United States
 
 
To
25/10/2003 01:08:50
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
00842560
Message ID:
00842570
Views:
16
Pierre,

The problem that you are having lies not in the DataAdapter, but in the CommandBuilder which automatically generates the SQL commands for the DataAdapter. The errors you are receiving are actually only warning messages. To run an updateable DataAdapter off of a SQL view, you will have to create the Update and Delete commands by hand.

>Hi !
>
>I Create a simple data form using SqlDataAdapter to connect to the users table.
>
>It works if I connect to the users table itself - Great BUT...
>
>If I do the same to connect to a view of the table I get the following error message when configuring the dataAdapter:
>
>Generated UPDATE statement.
>Could not determine which columns uniquely identify the rows for "v_AB6_IPs"
>
>Generated DELETE statement.
>Could not determine which columns uniquely identify the rows for "v_AB6_IPs"
>
>Very simple View select which DOES include the primary key !
>
>The primary key is the UserID, it is unique and does NOT allow Null values.
>
>Are views not audatable this way ?
>
>Thanks,
>
>Pierre
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform