google Search
Loading
Saturday, December 17, 2011
test
test Similarly, below is the sample code for ‘DataReader’ where you can see that when “ObjConnection.Close()” is called then the “While Loop” does not execute and throws an error. This indicates that the ‘DataReader’ works only in Connected Architecture.
Point 1:- ‘DataSet’ is a Disconnected Architecture while ‘DataReader’ is a Connected Architecture.
In order to understand that, below is the sample code for ‘DataSet’ where you can see even after calling the “ObjConnection.Close()” the ”Foreach Loop” is still running. This indicates that the ‘DataSet’ works in Disconnected Architecture.
Subscribe to:
Posts (Atom)