G
Guest
I am currently on my first ASP.Net application (Spell Checker), and have some
confusion/questions regarding the ADO.Net part of it.
I have a method that uses the SqlDataAdapter to fill a DataSet with results
from a query. The DataSet contains a table of blocks of text from many web
applications which is then returned from the method.
As the spell checking application checks words, the DataSet is updated with
any corrected words. So at the end of the spell checking the DataSet no
longer contains just the original text blocks. I have now found out that the
SqlDataAdapter.UpdateCommand will not work - the data adapter must have the
original DataSet.
If my Sql method returns the DataAdpater instead of the DataSet, is there
still an active connection to Sql Server?
If the connection is closed, will it work if I maintain the state of the
DataAdapter (and so the DataSet it filled), and thus use the .UpdateCommand
in the end?
Is there a better way to do this without recreating the original DataSet at
the end and merging the original and updated?
Thank you.
confusion/questions regarding the ADO.Net part of it.
I have a method that uses the SqlDataAdapter to fill a DataSet with results
from a query. The DataSet contains a table of blocks of text from many web
applications which is then returned from the method.
As the spell checking application checks words, the DataSet is updated with
any corrected words. So at the end of the spell checking the DataSet no
longer contains just the original text blocks. I have now found out that the
SqlDataAdapter.UpdateCommand will not work - the data adapter must have the
original DataSet.
If my Sql method returns the DataAdpater instead of the DataSet, is there
still an active connection to Sql Server?
If the connection is closed, will it work if I maintain the state of the
DataAdapter (and so the DataSet it filled), and thus use the .UpdateCommand
in the end?
Is there a better way to do this without recreating the original DataSet at
the end and merging the original and updated?
Thank you.