attached you'll find an example to create an udl link to your database. You need a template udl file for that, create it it for an existing database. The attached vi, needs this template as an input to copy the file and change the liked mdb.
Hope it helps.
i already create a mbd using create mdb vi .I attached it.
Then for connecting it to system dsn in ODBC i have to go into control panel ..........and do it. How to do it programatically?
the new database path shall contain the path to the database to create not to an udl file. It should be something like "test.mdb". The other path input is the path to the udl template, which will be copied and updated with the new information. The result is the udl file which you need for the "DB Tools Open Connection.vi" to open your new created database.