In a database program we configure the Access file through ODBC option provide in the control panel. Then we obtain the dns name of the database with wich we connect it to or application. This all is done explictly. I would like to know if this task can be done throug program it self. any code ?

Not that I know of, unless you're using something like a factory that would programatically choose from a list of predefined choices...You're going to need something to start with.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.