G
graigcrawford
I have created a view in SQL server 2000 that joins two one-to-one
tables. This view is updateable from SQL enerprise manager as all of
the keys are present to perform updates. In VB6, I could simply create
an ADO Recordset that queries this view, make the recordset optimistic,
and updates would be performed automatically when the .Update method
was invoked. However, in ADO.NET this appears to be impossible. I
have created a stored procedure that queries this view and bound the
resulting dataset to a grid. MY issue is I cannot make this dataset
updateable. Obviously, the command builder will not generate the
Update statement because there is a table join. I have tried creating
a stored procedure fot the update but am receiving an error - which
gives me no indication as to what the actual problem is. I cannot
create two adaptors because I need to bind he dataset to a single grid.
What is the solution? It seems as though ADO.NET is a huge step
backward from ADO. Any help would be greatly appreciated
tables. This view is updateable from SQL enerprise manager as all of
the keys are present to perform updates. In VB6, I could simply create
an ADO Recordset that queries this view, make the recordset optimistic,
and updates would be performed automatically when the .Update method
was invoked. However, in ADO.NET this appears to be impossible. I
have created a stored procedure that queries this view and bound the
resulting dataset to a grid. MY issue is I cannot make this dataset
updateable. Obviously, the command builder will not generate the
Update statement because there is a table join. I have tried creating
a stored procedure fot the update but am receiving an error - which
gives me no indication as to what the actual problem is. I cannot
create two adaptors because I need to bind he dataset to a single grid.
What is the solution? It seems as though ADO.NET is a huge step
backward from ADO. Any help would be greatly appreciated