What odbcconf.exe command line can I use to change the path to the MS Access .mdb file for an already existing System DSN?
相关问题
- Importing data from MS Access db to PostgreSQL db
- DoCmd.TransferSpreadsheet is not recognizing works
- Is there a way to apply theme on converted access
- How to programmatically convert Access 1997 .mdb t
- Multiple (left, cross?) JOINs in MS Access
相关文章
- COALESCE, IFNULL, or NZ() function that can be use
- CurrentDb.RecordsAffected returns 0. Why?
- How to embed ms-access forms in C# module?
- Sleep Lib “kernel32” gives 64-bit systems error
- How to destroy an object
- Close all VBE windows (MS Access, VB for Aplicatio
- Compiling an Access 2007 accdb into accde
- MS Access VBA: turn query results into a single st
You would have to do it by changing the registry. Something along the lines of this example taken from the net that I have used before
If you look at your existing DSN config in the registry then you will get an idea of how to modify the code to suit your situation
To answer the question as asked, here is a solution using odbcconf.exe instead of going straight to the registry:
Two items of note which had me tripped up for a while:
DBQ=
and notDatabase=
for the mdb path. When using the latter everything appears to work, however the connection link is named but not actually defined in the ODBC Administrator.