change system DSN to a difference MS Access Database
Version 1.0.0.0 (4.26 KB) by
Dan
matlab script to change which ms access database (.mdb) is set as the Data Source Name (DSN)
Typically, one would go to start->control panel->administrative tools->data sources (odbc)-->system dsn (tab)->configure-> and select, to choose a database. This script lets the user select the .mdb file they want to use as the DSN and then it updates the string in the registry file to the path and name of the chosen .mdb.
Code is in pushbutton1_Callback. I had to figure out how to do this and thought i'd share
Cite As
Dan (2026). change system DSN to a difference MS Access Database (https://se.mathworks.com/matlabcentral/fileexchange/39054-change-system-dsn-to-a-difference-ms-access-database), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2007b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Database Toolbox in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
