建立一个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 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
建立一个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
下列代码生成了一个结果集stmt=conn.createSt...k);下面对该rs描述正确的是(
下列代码生成了一个结果集stmt=conn.createSt...k);下面对该rs描述正确的是(
如果SqlConnection对象为conn,SqlCommand对象为cmd,请写出将cmd的连接属性设置为conn的代码:______
如果SqlConnection对象为conn,SqlCommand对象为cmd,请写出将cmd的连接属性设置为conn的代码:______
连接对象的创建方法中,正确的是()。 A: Conn=CreateObjet(“ADODConnection”) B: Conn=Server.CreateObjet(“ADODConnection”) C: SetConn=Server.CreateObjet(“ADODConnection”) D: SetConn=Server.CreateObjet(ADODConnection)
连接对象的创建方法中,正确的是()。 A: Conn=CreateObjet(“ADODConnection”) B: Conn=Server.CreateObjet(“ADODConnection”) C: SetConn=Server.CreateObjet(“ADODConnection”) D: SetConn=Server.CreateObjet(ADODConnection)
以下语句可以创建Statement接口对象的是( ) A: Statement sm = new Statement() B: Statement sm = conn. createStatement(); (注:conn为数据连接对象) C: Statement sm = conn. getStatement ();(注:conn为数据连接对象) D: Statement sm = conn. prepareStatement ();(注:conn为数据连接对象)
以下语句可以创建Statement接口对象的是( ) A: Statement sm = new Statement() B: Statement sm = conn. createStatement(); (注:conn为数据连接对象) C: Statement sm = conn. getStatement ();(注:conn为数据连接对象) D: Statement sm = conn. prepareStatement ();(注:conn为数据连接对象)
连接器包含哪些类型?() A: CONN B: INFC C: HEAD D: Connector
连接器包含哪些类型?() A: CONN B: INFC C: HEAD D: Connector
在Java Web应用程序中,下列()选项中的代码能够正确实现使用数据源(DataSource)获取数据库连接对象(数据源名称为dsname)。 A: A DataSource soure = new DataSource( ) ; Connection conn = source.getConnection( ); B: B Context source = new InitalContext( ); Connection conn = source.getConnection( ); C: C Context ctx = new InitalContext( ); DataSource ds = (DataSource) ctx.lookup("java:comp/env/dsname"); Connection conn =ds.getConnection( ); D: D Context ctx = new InitalContext ( ); DataSource ds = (DataSource) ctx.lookup("dsname"); Connection conn = ds.getConnection( );
在Java Web应用程序中,下列()选项中的代码能够正确实现使用数据源(DataSource)获取数据库连接对象(数据源名称为dsname)。 A: A DataSource soure = new DataSource( ) ; Connection conn = source.getConnection( ); B: B Context source = new InitalContext( ); Connection conn = source.getConnection( ); C: C Context ctx = new InitalContext( ); DataSource ds = (DataSource) ctx.lookup("java:comp/env/dsname"); Connection conn =ds.getConnection( ); D: D Context ctx = new InitalContext ( ); DataSource ds = (DataSource) ctx.lookup("dsname"); Connection conn = ds.getConnection( );
下列ASP.NET语句 ( )正确地创建了一个与SQL Server数据库的连接。 A: SqlConnection conn = new Connection("Data Source = localhost; Integrated Security = SSPI; Initial Catalog = myDB") B: SqlConnection conn = new SqlConnection("Data Source = localhost; Integrated Security = SSPI; Initial Catalog = myDB") C: SqlConnection conn = new SqlConnection(Data Source = localhost; Integrated Security = SSPI; Initial Catalog = myDB) D: SqlConnection conn = new OleDbConnection("Data Source = localhost; Integrated Security = SSPI; Initial Catalog = myDB")
下列ASP.NET语句 ( )正确地创建了一个与SQL Server数据库的连接。 A: SqlConnection conn = new Connection("Data Source = localhost; Integrated Security = SSPI; Initial Catalog = myDB") B: SqlConnection conn = new SqlConnection("Data Source = localhost; Integrated Security = SSPI; Initial Catalog = myDB") C: SqlConnection conn = new SqlConnection(Data Source = localhost; Integrated Security = SSPI; Initial Catalog = myDB) D: SqlConnection conn = new OleDbConnection("Data Source = localhost; Integrated Security = SSPI; Initial Catalog = myDB")
以下连接对象的创建方法,正确的是()。 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”)
以下连接对象的创建方法,正确的是()。 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”)