A
Alan Silver
Hello,
I am trying to persuade VS2005 to let me use a DataSet to insert to a
table. I add a DataSet item to the App_Code folder, and the wizard comes
up. I go through the steps, but when I get to the step where it asks if
I want to fill or return a datatable, the third option, to generate
methods for insert, update and delete is greyed out.
According to MSDN... "This option is unavailable when the original SQL
statement does not provide enough information or the query is not an
updateable query. This situation can occur, for example, in JOIN queries
and queries that return a single value (scalar)." I can't see how this
is relevant as I tried it with the simplest of SQL queries.
The really weird thing is that some of the tables in the database allow
the option to be set, and some do not. I have stared stupidly at these
tables trying to spot some difference, but I can't.
Anyone any ideas? TIA
I am trying to persuade VS2005 to let me use a DataSet to insert to a
table. I add a DataSet item to the App_Code folder, and the wizard comes
up. I go through the steps, but when I get to the step where it asks if
I want to fill or return a datatable, the third option, to generate
methods for insert, update and delete is greyed out.
According to MSDN... "This option is unavailable when the original SQL
statement does not provide enough information or the query is not an
updateable query. This situation can occur, for example, in JOIN queries
and queries that return a single value (scalar)." I can't see how this
is relevant as I tried it with the simplest of SQL queries.
The really weird thing is that some of the tables in the database allow
the option to be set, and some do not. I have stared stupidly at these
tables trying to spot some difference, but I can't.
Anyone any ideas? TIA