You are creating a Web Form. You write the following code segment to create a SqlCommand object.Dim conn As SqlConnection = New SqlConnection(connString)conn.Open()Dim cmd As SqlCommand = conn.CreateCommand()cmd.CommandText = "select count(*) from Customers"You need to display the number of customers in the Customers table. Which two code segments can you use to achieve this goal?()A. Dim customerCount As Object = cmd.ExecuteScalar()lblCompanyName.Text = customerCount.ToString()B. Dim customerCount As Integer = cmd.ExecuteNonQuery()lblCompanyName.Text = customerCount.ToString()C. Dim dr As SqlDataReader = cmd.ExecuteReader()dr.Read()lblCompanyName.Text = dr(0).ToString()D. Dim dr As SqlDataReader = cmd.ExecuteReader()dr.Read()lblCompanyName.Text = dr.ToString()

You are creating a Web Form. You write the following code segment to create a SqlCommand object.Dim conn As SqlConnection = New SqlConnection(connString)conn.Open()Dim cmd As SqlCommand = conn.CreateCommand()cmd.CommandText = "select count(*) from Customers"You need to display the number of customers in the Customers table. Which two code segments can you use to achieve this goal?()

A. Dim customerCount As Object = cmd.ExecuteScalar()lblCompanyName.Text = customerCount.ToString()

B. Dim customerCount As Integer = cmd.ExecuteNonQuery()lblCompanyName.Text = customerCount.ToString()

C. Dim dr As SqlDataReader = cmd.ExecuteReader()dr.Read()lblCompanyName.Text = dr(0).ToString()

D. Dim dr As SqlDataReader = cmd.ExecuteReader()dr.Read()lblCompanyName.Text = dr.ToString()


相关考题:

Tom: You are playing guitar well. Can you read music? Charles: No, I don't. I just listen to songs on the radio and then play them until they sound right. Tom: ______ Charles: No, really.A.You're lyingB.You're cheatingC.You are boastingD.You're kidding

在文件系统中,若要实现文件拷贝功能,可利用已有的系统调用,它们是A.create,open,read,write,closeB.create,open,read,write,deleteC.create,open,read,writeD.create,read,write,close

If _______ want to stay in good shape, you should do more exercise. A.weB.peopleC.oneD.you

You’re going to have a quiz ( )by another two in the ( )month. A. followed,followedB. followed,followingC. following,followedD. following,following

Does modern logistics mean transportation and delivery?()Modern logistics is more about effective and efficient flow of materials and information.A、 Yes, you’re rightB、 No, it’s not the whole storyC、 No, you' re wrong

You’re such a hardworking student, you()the praise. A、reserveB、deserveC、conserveD、preserve

– David, you've been losing your temper over nothing lately.– ( ).A. I haven’t been getting much sleep eitherB. You’d better not push yourself too hard, or you’ll get sickC. I’m sorry. I shouldn’t have blown up like thatD. You’d better do exercises regularly

24、将文献导入EndNote后,再安装Cite-While-You-Write插件,用户使用WORD撰写论文时便可实现参考文献的边写边插。

将文献导入EndNote后,再安装Cite-While-You-Write插件,用户使用WORD撰写论文时便可实现参考文献的边写边插。

你最好控制一下上网聊天的时间。(汉译英)A.You'd better set a limit for your online chat time.B.You'd better set a limit on your online chat time.C.You'd better set a limit on your online chatting time.D.You'd better set a limit for your online chatting time.