Generated Update Statement

M

Matt M.

I have a DataGrid that contains records from a SQL view. I would like to be
able to update those records from the DataGrid. I am getting this error
when I try to add a Data Adapter with a SQL view:

Could not determine which columns uniquely identify the rows for
"viewMM04Section1".

Is there something wrong my view (no primary key or something?)? I don't
want to have to manually write the Update statement.

Here is my view:

CREATE VIEW dbo.viewMM04Section1
AS
SELECT EmployeeNumber, LastName, S0101, S0102, S0103, S0104, S0105,
S0106, S0107, S0108, S0109, S0110
FROM dbo.MM2004


Thanks,
Matt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,754
Messages
2,569,525
Members
44,997
Latest member
mileyka

Latest Threads

Top