Linking FoxPro Tables DSN-less...

M

Michael Sommer

Hi!

What i trie to do is to link a FoxPro Table DSN-less.
Is this possible?

Linking FoxPro Tables to Access 2002 with the following ConnectionString
works fine:

sConnect =
"ODBC;DSN=dbFoxProTest;SourceDB=D:\somefolder\somedatabase.DBC;SourceType=DB
C;Exclusive=No;"

but this requires the dbFoxProTest DSN to exist on the System. I want to
link the Tables DSN-less (which works for dbase, paradox, text, sql-server,
etc...) like:

sConnect = "ODBC;Driver={Microsoft Visual FoxPro
Driver};SourceDB=D:\somefolder\somedatabase.DBC;SourceType=DBC;Exclusive=No;
"

Sample Code:
---
Dim td as TableDef

sConnect = <one of the above>

Set td = db.CreateTableDef(sTableInternal, dbAttachSavePWD,
sTableExternal, sConnect)
db.TableDefs.Append td
---

Trying to link DSN-less i get the error -7778 (There is no description for
this error).

What am i doing wrong? Is this at least not possible at all?

Greetings

Michael Sommer
HaPeC GmbH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top