What must your ASP code have if you are using the DSN-less method of connecting?
-
Connection object
-
Connection string
-
Both
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.
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.