|
Size: 438
Comment:
|
Size: 987
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 1: | Line 1: |
| ## page was renamed from ODBCSetup | |
| Line 3: | Line 4: |
| You poor, poor fool. | '''Open Database Connectivity''' ('''ODBC''') is a database API almost exclusively employed by Microsoft. <<TableOfContents>> ---- |
| Line 7: | Line 12: |
| == ODBCConf.exe == | == Connecting == There are a few ways to create an ODBC connection. === ODBCConf.exe === A (deprecated and '''pending removal''') Windows Data Access Components batch script. |
| Line 15: | Line 28: |
| == Connecting to ODBC == | === Add-OdbcDsn === A Powershell cmdlet. {{{ Add-OdbcDsn -Name "DATABASE_NAME" -DriverName "Microsoft Access Driver (*.mdb, *.accdb)" -DsnType "User" -SetPropertyValue 'DBQ=ABSOLUTE\PATH\TO\DATABASE.accdb' }}} ---- == Usage == |
| Line 27: | Line 54: |
ODBC
Open Database Connectivity (ODBC) is a database API almost exclusively employed by Microsoft.
Contents
Connecting
There are a few ways to create an ODBC connection.
ODBCConf.exe
A (deprecated and pending removal) Windows Data Access Components batch script.
odbcconf.exe /a { configdsn "Microsoft Access Driver (*.mdb, *.accdb)" "DSN=DATABASE_NAME|DBQ=ABSOLUTE\PATH\TO\DATABASE.accdb" }
Add-OdbcDsn
A Powershell cmdlet.
Add-OdbcDsn -Name "DATABASE_NAME" -DriverName "Microsoft Access Driver (*.mdb, *.accdb)" -DsnType "User" -SetPropertyValue 'DBQ=ABSOLUTE\PATH\TO\DATABASE.accdb'
Usage
SPSS
get data /type=odbc /connect='DSN=DATABASE_NAME;DBQ=ABSOLUTE\PATH\TO\DATABASE.accdb;' /sql='SELECT * FROM TABLE_NAME' /assumedstrwidth=255.
