# ODBC to Access without a DSN: putting the connection string in a variable on the table's OWNER

**URL:** <https://forums.softvelocity.com/t/odbc-to-access-without-a-dsn-putting-the-connection-string-in-a-variable-on-the-tables-owner/912>\
**Category:** Knowledge Base\
**Tags:** unverified, database-drivers\
**Created:** [November 9, 2026, 1:32am UTC](https://forums.softvelocity.com/t/odbc-to-access-without-a-dsn-putting-the-connection-string-in-a-variable-on-the-tables-owner/912 "2026-11-09T01:32:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rzaunere](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@rzaunere](https://forums.softvelocity.com/u/rzaunere)\
**Post date:** [November 9, 2026, 1:32am UTC](https://forums.softvelocity.com/t/odbc-to-access-without-a-dsn-putting-the-connection-string-in-a-variable-on-the-tables-owner/912/1 "2026-11-09T01:32:23Z")

</div>

**Applies to:** the ODBC driver against a Microsoft Access .mdb file; the thread names no Clarion version (2004 thread).

**Problem**

A DSN set up in Control Panel let the poster open the Access file and do the work, but he wanted a DSN-less connection. Two attempts failed: `SEND(filename,ConnectString)` before the OPEN, and `filename{PROP:Owner} = ConnectString`.

**Solution**

1. Add a variable to the table's Owner in the dictionary (the answer calls it `G:Connect`).
2. Fill the variable before the file is opened, with a full ODBC connection string. The example given:

```auto
G:Connect = 'DRIVER={{Microsoft Access Driver (*.mdb)}' |
 & ';DBQ=D:\YourDirectory\YourDatabase.Mdb' |
 & ';UID=YourUserId' |
 & ';PWD=YourPassword' |
 & ';ExtendedAnsiSql=1' |
 & ';FIL=MS Access'

```

1. Open the file. The original poster reported four days later that DSN-less ODBC was working and was "MUCH better than DSN access to ODBC".

**Caveats**

- The `{{` in the DRIVER part is as posted; the thread does not explain it.
- Two other posters pointed to an attached archive and to a connection-strings reference site; the thread does not say what the archive held.
- The poster did not say which of his two failed attempts was wrong or why.

**Today (2026)**

Likely still the usual shape (a variable on the Owner holding the connection string). Not re-tested, and the 32-bit Access driver named in the example may not be installed on a current machine.

**Sources:** Al R. (Apr 2004, the question), Guy C. (Apr 2004, the answer), George C., Kevin E. (Apr 2004) in softvelocity.clarion.databasedrivers.
