How do you implement locking concept for dataset?



How do you implement locking concept for dataset?..

Answer / Ankit Sharma

To implement locking on a DataSet, you can use the `WriteXml()` or `ReadXml()` methods along with the `XmllTextWriter` and `XmllTextReader` classes. These methods provide options to set the `XmlWriteMode` parameter to `XmlWriteMode.WriteSchema`, which will write an XSD schema file that defines the DataSet's structure. This can help ensure data integrity when multiple users are working on the same dataset.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ADO.NET Interview Questions

Explain why canot we use multiple inheritance and garbage collector paralelly in .net?

1 Answers  


What are the usages of the command object in ado.net?

1 Answers  


What is the difference between executenonquery () and executescalar ()?

1 Answers  


How we can provide data to ado.net?

1 Answers  


What is the difference between a datareader and a dataset?

1 Answers  


How will you fill the gridview by using datatable object at runtime?

1 Answers  


What is adodb dll?

1 Answers  


What are the features of ado.net?

1 Answers  


how to create a quiz software using 4 options to answer and how to check with answers in the database and award marks....

2 Answers   Ford,


How to find the given query is optimised one or not?

1 Answers  


What are the differences between OLEDB and SQLClient Providers?

1 Answers  


What is data view and variable view?

1 Answers  


Categories