If i am expecting a single result from sqlserverdatabase
then what command should i follow ?sqlcommand.executereader
(commandbehaviour.singleresult)or sqlcommand.executescalar()
Answer Posted / m.mohan krishna
Sqlcommand.executescalar() is preffered.
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is datasource in ado.net?
What is method to get XML and schema from Dataset? getXML() and get Schema ()
What is ado circle?
What is difference between sqldatareader and sqldataadapter?
What is row state?
What is ado code?
What is partial class?
What is the meaning of object pooling?
What is dao and ado?
What are good ado.net object to replace to ado recordset object.
What is the difference in an abstract class and an interface?
Describe connection object in ado.net
How to Read, Add, Update and Delete record in Entity Framework ?
What property must be set and what method must be called in your code to bind the data from some data source to the Repeater control?
oledbdataadpter with ms access in c#.net giving exception System.Data.OleDb.OleDbException while writing adapter.update(dataset,"tabname"); how to update the database from dataset?