If there are CursorLocation, CursorType, LockType in VB6, how about in C# ?
anyone can explain the difference and features that replace it ?
thanks before
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
SenthilkumarRank #387 · 6.5K reputationPosted Apr 13, 2012, 8:37 PM EDT
There will be separate transaction.
Suppose if the read and write happens on the same table then
you can use NOLOCK statement.
SELECT * FROM table_name WITH NOLOCK
SenthilkumarRank #387 · 6.5K reputationPosted Apr 12, 2012, 9:53 PM EDT
There are some classes called DataSet and DataReader.
The DataReader is read only, forward only and can't update. It will read row by row from the database.
It does not have the cursor to move front and back.
http://msdn.microsoft.com/library/windows/apps/BR208119
http://msdn.microsoft.com/en-us/library/haa3afyz(v=vs.71).aspx
The DataSet is like memory representation and it can work in offline. It means reads the data in connection and can hold the value in the disconnected architecture.
The Dataset can have many data tables an it can be iterated. It has the option to save, read row by row, delete, compare the two data tables, sorting and relationship.
http://msdn.microsoft.com/en-us/library/system.data.dataset(v=vs.71).aspx
http://www.dotnetperls.com/dataset
antoni rich17 reputationPosted Apr 12, 2012, 10:23 PM EDT
But, How we manage the code if some user access (read or transaction) to one table or record in the same time ?
antoni rich17 reputationPosted Apr 13, 2012, 9:35 PM EDT
Sorry, Beside using NoLock, have another way to safely doing the transaction ?
And how about with insert, update & delete, does need using NoLock statement ?
SenthilkumarRank #387 · 6.5K reputationPosted Apr 13, 2012, 10:28 PM EDT
antoni rich17 reputationPosted Apr 15, 2012, 7:39 PM EDT
Success for You..