多做题,通过考试没问题!

微软认证考试

睦霖题库>其他计算机考试>微软认证考试

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 have completed the following code segment. (Line numbers are for reference only.)   01 private void GetRecords(SqlDataAdapter da, DataTable table) {  02  03     try {  04         da.Fill(table);  05     }  06     catch (SqlException exp) {  08     }  09     finally {  10  11     }  12 }  13  You have set the da.SelectCommand.CommandText property to a stored procedure, which declares a variable named @msg. If the stored procedure has a bad shipping address, it will do the following:   1. sets @msg with the id of the record.  2. raises an error for the record.   The raised error can be seen in the following text: RaiseError(@msg, 10,  1). You want to retrieve all records, valid or not; and that a list item is added to the lstResults list box for each invalid record.   What should you do?()

  • A、A
  • B、B
  • C、C
  • D、D
  • E、E
  • F、F
正确答案:B,F
答案解析:
进入题库查看解析

微信扫一扫手机做题