windows:connectdatabaseusingodbcwithoutdsn
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
windows:connectdatabaseusingodbcwithoutdsn [2015/06/04 07:42] – rlunaro | windows:connectdatabaseusingodbcwithoutdsn [2022/12/02 21:02] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 17: | Line 17: | ||
it to '' | it to '' | ||
- | {{ : | + | {{ : |
===== Step 2: open it and pick an OLE DB provider ===== | ===== Step 2: open it and pick an OLE DB provider ===== | ||
Line 24: | Line 23: | ||
for ODBC Drivers": | 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've | ||
+ | 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 " | ===== Step 3: move back to " |
windows/connectdatabaseusingodbcwithoutdsn.1433403776.txt.gz · Last modified: 2022/12/02 21:02 (external edit)