Set the database driver name in the connection string of the application, and then the connection object as follows: DbConnection connection = new OdbcConnection(connectionString);
Create the connection object as follows: DbProviderFactory factoryDbProviderFactories.GetFactory(databaseProviderName); DbConnection connection =factory.CreateConnection();
Create the connection object as follows: DbProviderFactory factory = DbProviderFactories.GetFactory(System.Data.Odbc); DbConnection connection = factory.CreateConnection();
Set the database driver name in the connection string of the application, and then the connection object as follows:DbConnection connection = new OleDbConnection(connectionString);
第1题:
You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual Studio .NET 2010 as its application development platform. You are creating an ASP.NET Web application using .NET Framework 4.0. The Web application comprises a class named Employee with properties named as First Name, Last Name, and Age. You add a Web page in which you get a list of Employee objects and display those objects in a GridView control. You are required to add code so that the GridView row is highlighted in red color if the age of the employee is less than 21 years. What will you do to accomplish this?()
第2题:
You work as the application developer at Certkiller .com. Certkiller .com uses Visual Studio.NET 2005 as its application development platform. You are developing a Windows Service application. You need to change the security context in which the service runs. The service will be run in context of a non-privileged user on the local computer and present anonymous credentials to any remote server. You are required to set the Account property of the ServiceProcessInstaller class to specify the service account. What should you do?()
第3题:
You work as an application developer at Contoso.com. You use Microsoft .NET Framework 3.5 and Microsoft ADO.NET to develop an application. You want to make sure that the application is operative to any type of database. What should you do?()
第4题:
You work as a Web Developer at Certkiller.com. You create a Web application using MicrosoftASP.NET 3.5. Certkiller.com hosts the application in Microsoft Internet Information Services 7.0. You attempt tobrowse the application and receive the following error message: Service Unavailable HTTP Error 503. The service is unavailable. You check and discover that you are able to browse successfully to other application that formspart of the same IIS Web site. The hosted applications on the network make use of ASP.NET 3.5.There are not previous versions of ASP.NET is installed. You need to resolve this error as soon aspossible. What should you do?()
第5题:
You work as an application developer at Contoso.com. You use Microsoft .NET Framework 3.5 and Microsoft ADO.NET to develop an application. The database on the Microsoft SQL Server 2005 database has two tables that are displayed by using two SqlConnection objects in two different GridView controls. You want the tables to be displayed at the same time with the use a single SqlConnection object. What should you do?()
第6题:
You work in a company which uses SQL Server 2008. You are the administrator of the company database. Now you are in charge of a SQL Server 2008 instance. The instance contains a database named DB1. An application which is continuously connected uses DB1. The application extensively uses the INSERT command and triggers the population of multiple tables. Now you notice that the application has a poor performance. You doubt that this problem has something to do with blocking. You have to monitor the state of the instance at regular intervals while not affecting the application performance further. Which tool should you use? ()
第7题:
A
B
C
D
第8题:
Add the following parameter to the connection string: Integrated Security=true; PersistSecurityInfo=true;
Add the following parameter to the connection string: Integrated Security=SSPI;
Add the following parameter to the connection string: Integrated Security=SSPI; PersistSecurityInfo=yes;
Add the following parameter to the connection string: Integrated Security=true;
第9题:
Create a bound connection by using the sp_getbindtoken and the sp_bindsession stored procedures.
Enable Multiple Active Result Sets (MARS) in the connection string of the application.
Create an exception handler for the connection-busy exception that is thrown on using a single SqlConnection object.
Run the two SqlDataReader objects by using a single SqlCommand object.
第10题:
Use the ServiceBase class.
Use the ServiceInstaller class.
Use the ServiceManager class.
Use the ServiceController class.
第11题:
Add the connection string to the Settings.settings file.
Add connection string to the Web.config file and use protected configuration.
Use the TRUE setting in the Persist Security Info keyword.
Use the FALSE setting in the Persist Security Info keyword
第12题:
Use the Enqueue method of the MyQueue object.
Use the Contains method of the MyQueue object.
Use the Dequeue method of the MyQueue object.
Use the Peek method of the MyQueue object.
第13题:
You work as an application developer at Certkiller .com. You have recently created an application domain for Certkiller .com. A few weeks later you are asked to retrieve information from this application domain, which is the current application domain. What can you do to achieve this objective?()
第14题:
You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual Studio .NET 2010 as its application development platform. You create an ASP.NET Web application using .NET Framework 4.0. The Web application connects to a SQL Server database. You use the ADO.NET Entity Framework to handle persistence-ignorant entities. You create an ObjectContext object named ObjContext. Subsequently, you change properties on numerous entities. You are required to save the changed entity values in the SQL Server database. Which of the following code segments will you use?()
第15题:
You work as an application developer at Certkiller .com. You are required to dynamically load assemblies into an application domain. You are using the Load method of the AppDomain class. What types of files can you this use method for?()
第16题:
You work as an application developer at Certkiller .com. You are currently in theprocess of reviewing an application that was created by a fellow developer.The application that you are reviewing includes a declaration for a collection named EmployeeList, which stores Employee objects. The declaration is shown below: public class EmployeeList : Enumerator, IEnumerable { // Class implementation } You require the ability to iterate through the EmployeeList with minimum development effort.What should you do?()
第17题:
You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual Studio .NET 2010 as its application development platform. You create an ASP.NET Web application using .NET Framework 4.0. You create a Web page in the application. The Web page will get large sets of data from a data source. You add a DataPager control to the page. You are required to display navigation controls that enable you to create a custom paging Ul for the DataPager control. What will you do?()
第18题:
A
B
C
D
第19题:
A
B
C
D
第20题:
AppDomain.CurrentDomain.ShadowCopyFiles
AppDomain.CurrentDomain.CachePath
AppDomain.CurrentDomain.ConfigurationFile
AppDomain.CurrentDomain.Evidence
第21题:
Library application files (.dll).
All assembly files, no matter what there file extensions are.
Application configuration files (.config).
Standalone application files (.exe).
第22题:
Use the Enqueue method of the MyQueue object.
Use the Clear method of the MyQueue object.
Use the Dequeue method of the MyQueue object.
Use the TrimToSize method of the MyQueue object.
第23题:
You should use the page directive: <%@ Page StyleSheetTheme=App_Themes.Dark/>
You should use the page directive: <%@ Page Theme=App_Themes.Dark/>
You should use the page directive: <%@ Page Theme=Dark/>
You should use the page directive: <%@ Page StyleSheetTheme=Dark/>
第24题:
A
B
C
D