题目内容

You develop a service application named PollingService that periodically calls long-running procedures.These procedures are called from the DoWork method.You use the following service application code: When you attempt to start the service, you receive the following error message: Could not start the PollingService service on the local computer.Error 1053: The service did not respond to the start or control request in a timely fashion. You need to modify the service application code so that the service starts properly.What should you do?()

A. Move the loop code into the constructor of the service class from the OnStart method.
B. Drag a timer component onto the design surface of the service. Move the calls to the long-running procedure from the OnStart method into the Tick event procedure of the timer, set the Enabled property of the timer to True, and call the Start method of the timer in the OnStart method.
C. Add a class-level System.Timers.Timer variable to the service class code. Move the call to the DoWork method into the Elapsed event procedure of the timer, set the Enabled property of the timer to True, and call the Start method of the timer in the OnStart method.
D. Move the loop code from the OnStart method into the DoWork method.

查看答案
更多问题

You work in a Organization which is named Wiikigo Corp. The Organization uses SQL Server 2008. You are the administrator of the Organization database. Now you are in charge of a SQL Server 2008 instance. Look at the following query: SELECT s.*, i.* FROM SensitiveTbl AS s INNER JOIN InsensitiveTbl AS iON i. OrganizationName = s.OrganizationName You use the above query to join two tables on a column named OrganizationName. The following error is returned when you execute the query. "Msg 468, Level 16, State 9, Line 17 Cannot resolve the collation conflict between 'SQL_Latin1_General_CP1_CS_AS' and 'SQL_Latin1_General_CP1_CI_AS' in the equal to operation." The ON clause of the query has to be modified so that it can perform a case-sensitive joinsuccessfully. What should you do? ()

A. ON LOWER(i.OrganizationName) = LOWER(s.OrganizationName)
B. ON UPPER(i.OrganizationName) = UPPER(s.OrganizationName)
C. ON i.OrganizationName = s.OrganizationName COLLATE SQL_Latin1_General_CP1_CS_AS
D. ON i.OrganizationName = s.OrganizationName COLLATE SQL_Latin1_General_CP1_CI_AS

Youhaveafileserverthatrunswindowsserver2008.Auserrestoresalargefilebyusingthepreviousversionstab.Youneedtoviewtheprogressofthefilerestoration.Whatshouldyoudo?()

A. Fromthecommandprompt,runshadow.exe/v.
B. Fromthecommandprompt,runvssadmin.exequeryreverts.
C. Fromcomputermanagerment,clickonthesharedfoldersnodeandthenclickonsessions.
D. Fromcomputermanagerment,clickonthesharedfoldersnodeandthenclickonopenfiles.

哪些类型的对象从MemberInfo类检索?()

A. FieldInfoclass
B. MethodInfoclass
C. Assemblyclass
D. Typeclass

You work in a company which is named Wiikigo Corp. The company uses SQL Server 2008. You are the administrator of the company database. Now you are in charge of a SQL Server 2008 instance. Today you notice that applications that run on the server have poor performances. You doubt that this has something to do with table scans. You have to capture the appropriate information by using an appropriate Windows System Monitor object. In the options below, which performance object should you use? ()

A. You should use SQLServer:Buffer Manager
B. You should use SQLServer:Memory Manager
C. You should use SQLServer:Databases
D. You should use SQLServer:Access Methods

答案查题题库