Multiple choice asp ado

What must your ASP code have if you are using the DSN-less method of connecting?

  1. Connection object

  2. Connection string

  3. Both

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The DSN-less connection method requires both a Connection object and a connection string. The difference from DSN is that the connection string must explicitly specify all connection parameters (driver, database path, credentials) instead of referencing a preconfigured DSN. Both components are still mandatory for establishing the connection.

AI explanation

In classic ASP, connecting to a database always requires a Connection object (e.g., ADODB.Connection) to actually open and manage the connection. When using the DSN-less method specifically, that connection object must be given a full connection string (driver, server, database path) since there's no pre-registered DSN to reference — so both pieces are needed together.