If i am expecting a single result from sqlserverdatabase
then what command should i follow ?sqlcommand.executereader
(commandbehaviour.singleresult)or sqlcommand.executescalar()
Answer Posted / pankul
sqlcommand.executescalar()
Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
What is a datareader object?
What is the difference between Response.Expires and Reponse.ExpiresAbsolute?
What is dataset object? Explain the various objects in dataset.
What are all the different authentication techniques used to connect to MS SQL Server?
What are all the different methods under sqlcommand?
What are the key events of sqlconnection class?
What is the hierarchy of data in databases?
What is the difference between Dataset. clone and Dataset.copy?
What is variable view?
What is ado.net components?
If we are not returning any records from the database, which method is to be used?
Can we create Synonymns in MS Acess,My Sql Server,Sql Server? But iam we can create in oracle!
Explain sqlconnection object?
What is ado rdo dao in visual basic?
What is ado data control?