可学答题网 > 问答 > MCTS(70-528)题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

You have an SQL query that takes one m


You have an SQL query that takes one minute to execute. You use the following code segment to execute the SQL query asynchronously.Dim ar As IAsyncResult = cmd.BeginExecuteReader()You need to execute a method named DoWork() that takes one second to run while the SQL query is executing. DoWork() must run as many times as possible while the SQL query is executing. Which code segment should you use?()

  • A While ar.AsyncWaitHandle Is Nothing DoWork()End Whiledr = cmd.EndExecuteReader(ar)
  • B While Not ar.IsCompleted DoWork()End Whiledr = cmd.EndExecuteReader(ar)
  • C While T hread.CurrentThread.ThreadState = ThreadState.Running DoWork()End Whiledr = cmd.EndExecuteReader(ar)
  • D While Not ar.AsyncWaitHandle.WaitOne() DoWork()End Whiledr = cmd.EndExecuteReader(ar)
参考答案
参考解析:
分类:MCTS(70-528)题库
相关推荐

1、Some of you may have finished unit one

Some of you may have finished unit one. _____ , you can go on to unit two.A If you mayB If you doC If notD If so

2、To have an interview for a job,one sho

To have an interview for a job,one should________.Awear expensive clothesBbe clean and tidyCbe polite and gentlemanly(or gentlewomanly)Dbe both B and C

3、Have you been taking much()?

Have you been taking much()?AdrugBpillCtabletDmedicine

4、You want a record of all queries that

You want a record of all queries that are not using indexes. How would you achieve this?()ABy enabling the Slow Query Log because all queri...

5、You have applications that have freque

You have applications that have frequently executed queries, and produce small and static result sets.You configure the sqlnet.ora file in the c...

6、On one hand,you have to continue loadi

On one hand,you have to continue loading,on()hand,I’ll contact the Despatch Office right now.AanotherBotherCthe otherDthe other