I cant beleive i havent found an answer to this, but here goes.
I am using visual studio c++ 2005 express edition and have made an application with a specified data source using an access file. Can I instead setup the odbc connection in Windows and connect to the name of that connection instead All connection strings I have found have forced you to specify the mdb location in the project which is very inflexible and visual studio doesnt seem to let me do it any other way.
Thanks in advance.

specify odbc connection
meo1985
i shall persist >:-|
Juan.Faustino
Hi,
If you are using ODBC .NET Managed Provider then you could use DSN name in your connection string. You do not have to specify driver name. I do not know C++, but in C# it would look like
cn= new OdbcConnection("dsn=myDSN;UID=myUid;PWD=myPwd;");
pchr
mthom