What is the difference between Optimistic and Pessimistic locking?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More ADO.NET Interview Questions

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

0 Answers  


Explain how to create dynamic gridview?

0 Answers  


what is a dataview?why is it used for?

4 Answers   Choice Solutions,


How To Update A Column In A DataGrid Using C#.NET? I am getting InvalidCastException as (Specified cast is not valid) while updating 2nd column in a datagrid? Id,firstname,lastname are the three columns of my datagrid respectively. I wanted to edit the second column(lastname) and update it. I did the following code in DataGrid's updatecommand(),but failed to update ! Int varid=(int)DataGrid1.DataKeys[e.Item.ItemIndex]; TextBox lnm=(TextBox)e.Item.Cells[2].Controls[0]; string str=lnm.Text ; SqlCommand cmd=new SqlCommand("update customer set lastname='" + str + "' where id=" + varid + "",con); cmd.ExecuteNonQuery(); DataGrid1.EditItemIndex=- 1; DataGrid1.DataBind();

2 Answers   Mind Tree, TCS,


What is meant by executenonquery?

0 Answers  






How do we invoke queries from the application

2 Answers  


ADO.NET is Disconnected Architecture. DataReader is connected Architecture, but DataReader is a part of ADO.NET. How is it possible?

3 Answers   Zensar,


Which is faster datareader or dataadapter?

0 Answers  


What is ado and rdo?

0 Answers  


What is a sqldataadapter?

0 Answers  


describe about the ado.net object model

4 Answers   TCS,


what is meant by connection pooling and event pumbling in ado.net

3 Answers   TCS,


Categories