windows:connectdatabaseusingodbcwithoutdsn
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
windows:connectdatabaseusingodbcwithoutdsn [2015/06/04 09:35] – created rlunaro | windows:connectdatabaseusingodbcwithoutdsn [2015/06/04 10:25] – [Step 2: open it and pick an OLE DB provider] rlunaro | ||
---|---|---|---|
Line 17: | Line 17: | ||
it to '' | it to '' | ||
+ | {{ : | ||
+ | ===== Step 2: open it and pick an OLE DB provider ===== | ||
+ | Move to the " | ||
+ | for ODBC Drivers": | ||
+ | {{ : | ||
+ | |||
+ | ===== Step 3: create a new connection string ===== | ||
+ | |||
+ | Click on "Use connection string" | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | In the window that will appear, select " | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Pick the ODBC driver you want to use: | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Windows will request you to save this file as a " | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | After that, some configuration parameters that are specific for the driver will be requested. Because I' | ||
+ | the Microsoft for Oracle Driver, the usual screen requesting TNS, username and password is shown. In other | ||
+ | drivers, other screens will appear. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | You will see that after this step the important information of the connection string is fullfilled: | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Fulfill the username, password and click on "Allow saving password": | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Save all the information and close the window. | ||
+ | |||
+ | ===== Step XX: open the udl file with a text editor ===== | ||
+ | |||
+ | After that, open the '' | ||
+ | |||
+ | < | ||
+ | [oledb] | ||
+ | ; Everything after this line is an OLE DB initstring | ||
+ | Provider=MSDASQL.1; | ||
+ | </ | ||
+ | |||
+ | You can use that as a connection string for your ADODB.connection objects and it won't need any DNS | ||
+ | for connection. | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== Step 3: move back to " | ||
+ | |||
+ | Moving back to the Connection tab, you have to click on "Use connection string" | ||
windows/connectdatabaseusingodbcwithoutdsn.txt · Last modified: 2022/12/02 22:02 by 127.0.0.1