ADO.NET Interview questions


Total available count: 25
Subject - Microsoft Technologies
Subsubject - ADO.NET

Explain about SqlCommand.CommandTimeout property?

CommandTimeout property is used to get or set the time duration to execute the command with out Timeout error.

SqlCommand cmd = new SqlCommand("SPName",Connection);
cmd.CommandTimeout = 5; //Time in seconds
//Default timeout time is 30 seconds.

 




Next 5 interview question(s)

1
Explain about asynchronous execution of commands?
2
Can you inherit from SqlConnection class?
3
Why will an ASP.NET user account be created in the database for an ASP.NET web application?
4
Explain the steps to access the database in ADO.NET?
5
Explain about Row States and Row Versions?