G
Gerard
I have many complex SQL Server 2000 stored procedures, using cursors, temp
tables... They all finally return a resultset that could be a join on
several user and temp tables.
Now, when I try to drag some of them on a dataset in VS 2005, the designer
will create a QueriesTableAdapter for a query that returns no data or a
scalar value, which is not what my procedure does.
The only way I found to create the working typed dataset (apart from
manually designing it) is to create a fake SP that returns the correct data
(creating the table in the SP) and then reconfigure the TableAdapter to
connect it to the correct SP. This is a lot of work if I have lots of
procedures, and it isn't easy to maintain if procedures change.
Is there a better way to do it? Where can I find a documentation that would
tell me what are the creterias for the drag and drop operation to work on a
Dataset?
Gerard.
tables... They all finally return a resultset that could be a join on
several user and temp tables.
Now, when I try to drag some of them on a dataset in VS 2005, the designer
will create a QueriesTableAdapter for a query that returns no data or a
scalar value, which is not what my procedure does.
The only way I found to create the working typed dataset (apart from
manually designing it) is to create a fake SP that returns the correct data
(creating the table in the SP) and then reconfigure the TableAdapter to
connect it to the correct SP. This is a lot of work if I have lots of
procedures, and it isn't easy to maintain if procedures change.
Is there a better way to do it? Where can I find a documentation that would
tell me what are the creterias for the drag and drop operation to work on a
Dataset?
Gerard.