Your application uses the Microsoft .NET Framework Data Provider for SQL Server to access a Microsoft SQL Server database. You connect to the database using integrated security and query all rows in a table. You want to catch and log any exception that is caused if the credentials provided do not have read access to the table in the database. You do not want to handle other exception types.

Which exception should you use?

 Posted by Rajkatie on 8/31/2012 | Category: ADO.NET Interview questions | Views: 2165 | Points: 40
Select from following answers:
  1. SqlException
  2. DataException
  3. SecurityException
  4. All Above

Show Correct Answer

Source: | | Alert Moderator 

Comments or Responses

Login to post response