微软MCAD 70-310 实战百题
题目内容

You are developing an application that retrieves a list of geographical regions from a table in a Microsoft SQL Server database. The list of regions is displayed in a dropdown list box on a Windows Form. .You want to populate the list box with data from a DataSet object. You want to fill the DataSet object by using a SqlDataAdapter object.You create a SqlConnection object named YourConnection and a SQL query string named regionSQL. You need to write the code to create the SqlDataAdapter object.Which code segment should you use?

2021-12-25

A.Dim myDataAdapter As New SqlDataAdapter()myDataAdapter.SelectCommand.Connection = MyConnection myDataAdapter.SelectCommand.CommandTexc = regionSQL

B.Dim myDataAdapter As New SqlDataAdapter(regionSQL, MyConnection)C . Dim SqlCmd As New SqlCommand(regionSQL)Dim myDataAdapter As New SqlDataAdapter() myDataAdapter.SelectCommand.Connection = MyConnection myDataAdapter.SelectCommand = SqlCmdD. Dim SqlCmd As New SqlComrnand ()Dim myDataAdapter As New SqlDataAdapter()SqlCmd.CommandText = regionSQLmyDataAdapter.SelectCommand.Connection = MyConnection myDataAdapter.SelectCommand = SqlCmd

题目答案

试卷相关题目

最新试卷
热门试卷

长理培训客户端 资讯,试题,视频一手掌握

去 App Store 免费下载 iOS 客户端