What are two possible code segments for you to use Each correct answer presents a complete solution Choose two

A. Dim comm As New OleDbCommand() comm.CommandText = "SELECT * FROM Regions" comm.Connection = conn

B. Dim comm. As New OleDbCommand("sp_GetRegions", conn) comm.CommandType = CommandType.Text

C. Dim comm As New OleDbCommand("SELECT * FROM Regions", _

conn)

comm.CommandType = CommandType.Text

D. Dim comm As New OleDbCommand("sp_GetRegions", conn) comm.CommandType = CommandType.TableDirect

E. Dim comm As New OleDbCommand() comm.CommandType = "SELECT * FROM Regions" comm.Connection = conn

0 0

Post a comment