320 likes | 404 Views
Access & ODBC. Managing and Using ODBC Connections. P.O. Box 6142 Laguna Niguel, CA 92607 949-489-1472 http://www.d2associates.com. Access Utilities. Linked Tables. P.O. Box 6142 Laguna Niguel, CA 92607 949-489-1472 http://www.d2associates.com. Linked Tables.
E N D
Access & ODBC Managing and Using ODBC Connections P.O. Box 6142 Laguna Niguel, CA 92607 949-489-1472 http://www.d2associates.com Access Utilities
Access Utilities Linked Tables P.O. Box 6142 Laguna Niguel, CA 92607 949-489-1472 http://www.d2associates.com Access Utilities
Linked Tables • Powerful feature of Microsoft Access • Very widely used • Sets up “pointers” in the database • Can link to text, Excel, dBase, etc. • Another type of data source is ODBC Access Utilities
Access Utilities ODBC P.O. Box 6142 Laguna Niguel, CA 92607 949-489-1472 http://www.d2associates.com Access Utilities
ODBC • ODBC = Open Database Connectivity • Microsoft supplies a generic middleman driver with Windows • Vendors supply drivers for their specific database or data source • This enables Access to link to data in almost any kind of database including Oracle, MS SQL Server, DB2, MySQL, etc. Access Utilities
Access Utilities Linking Tables Via ODBC P.O. Box 6142 Laguna Niguel, CA 92607 949-489-1472 http://www.d2associates.com Access Utilities
Linking to ODBC tables • 3 scenarios • The ODBC connection (DSN or Data Source Name) exists already (perhaps provided by IT group) • Create the DSN in advance via Windows • Create the DSN connection while going through the link table procedure Access Utilities
Launch Link Tables Dialogue(Existing DSN scenario, Scenario 1) Access Utilities
Link Dialogue Select files of type ODBC Access Utilities
Select Existing Data Source Access Utilities
Login to Data Source Access Utilities
Select Tables to Link Access Utilities
Access Database Window with Linked Tables Access Utilities
Create New Windows DSN(Scenario 2) • As stated before DSN typically created well in advance by IT • But…for illustration purposes we will create it ourselves • This scenario thus has two major steps • 1 – create the DSN under Windows • 2 – Launch the link tables dialogue in Access and proceed. We have already done this, so this will not be repeated here Access Utilities
Key DSN Properties • Name • Driver • Database Name • Authentication Method • User Name/Password (if using SQL Server authentication) Access Utilities
Launch Control Panel(Create DSN in Window second scenario) Access Utilities
Control Panel Access Utilities
Administrative Tools Access Utilities
Add DSN Access Utilities
Select Driver Access Utilities
Create New DSN Access Utilities
Specify Authentication Method Access Utilities
Specify Database in SQL Server Access Utilities
Accept Defaults Access Utilities
Review Properties and Test DSN Access Utilities
Rocky2 DSN Tests OK Access Utilities
Rocky2 DSN now available Note: the rocky2 DSN is available for all applications that can use ODBC, not just Access Access Utilities
Link Tables(Use created DSN; still in second scenario) • We will now go through an abbreviated series of slides showing how the new DSN can used. Access Utilities
Launch Link Tables Dialogue(Use created DSN; still in second scenario) Access Utilities
Select New Rocky2 Data Source Access Utilities
Select Tables Access Utilities
New Bookstore Database with Linked Tables via rocky2 DSN Access Utilities