There are a number of things you can do to get the native provider set up. When you have it set up, you simply replace the name of the system DSN with the string that has been produced in order to connect to the data store using the native OLE DB provider. First, try to create an Universal Data Link file by doing the following:
1) Create a file named connectionstring.udl
2) Right-click on it
3) Choose Properties
4) Choose the OLE DB Provider to use
5) Define what source to connect to and possibly a username and password
6) Click "Test Connection"
7) Open the file in "Notepad"
8) Highlight the connectionstring and press CTRL+C to copy it into memory
9) Paste it into your ADO application by pressing CTRL+V
If you are not lucky enough to have .udl, locate a friend who has it or dig around for the connectionstrings. It is more than feasible that there are texts on it available on the Internet, too. To give an example, this is what a typical connectionstring looks like for an Access database:
Code:
Provider=Microsoft.Jet.OLEDB.4.0;
User ID=Somebody;
Data Source=c:\\access.mdb;
Persist Security Info=False