列声明并创建Connection对象的语句,正确的是()。
A: Dim ADOcn As New Connection
B: Dim ADOcn As Connection
C: Declare ADOcn As New Connection
D: Declare ADOcn As Connection
A: Dim ADOcn As New Connection
B: Dim ADOcn As Connection
C: Declare ADOcn As New Connection
D: Declare ADOcn As Connection
举一反三
- 建立一个Connection对象的正确方法是( )。 A: Dim conn As ADODB.Connection conn=ADODB.Connection B: Dim conn As ADODB.Connection Set conn=New ADODB.Connection C: Dim conn As ADODB.Connection Set conn=ADODB.Connection D: Dim conn As Connection Set conn=New Connection
- 建立一个Connection对象的正确方法是( )。 A: Dim conn As ADODB.Connection<br>conn=ADODB.Connection B: Dim conn As ADODB.Connection<br>Set conn=New ADODB.Connection C: Dim conn As ADODB.Connection<br>Set conn=ADODB.Connection D: Dim conn As Connection<br>Set conn=New Connection
- 以下连接对象的创建方法,正确的是()。 A: conn=CreateObject(”ADOD B: connection”) C: conn=Server.CreateObject(”ADOD D: connection”) E: Setconn=Server.CreateObject(ADOD F: connection) G: Setconn=Server.CreateObject(”ADOD H: connection”)
- 应用ADO.NET访问数据时,Connection对象的连接字符串中Initial Catalog子串的含义是______________。 A: Connection对象连接到的数据库名称 B: Connection对象的身份验证信息 C: Connection对象的最大连接时间 D: Connection对象使用的缓存大小
- 在JDBC中使用事务,想要回滚事务的方法是()。 A: Connection的commit() B: Connection的setAutoCommit() C: D: Connection的rollback() E: Connection的rollback()Connection的rollback() F: Connection的close()