Free Newsletters:
DatabaseJournal  
DBANews
Database Journal
Search Database Journal:
 
HOME News MS SQL Oracle DB2 Access MySQL PostgreSQL PHP SQL Etc Scripts Links Discussion
internet.com

» HOME
» NEWS
» FEATURES
» SERIES
MS SQL
Oracle
MS Access
MySQL
DB2
» RESOURCES
Products
Scripts
Links
» DISCUSSION
» TECH JOBS

Marketplace Partners
Be a Marketplace Partner




internet.commerce
Be a Commerce Partner
Hurricane Shutters
Promos and Premiums
Promotional Pens
Corporate Gifts
Televisions
Condos For Sale
Web Design
Baby Photo Contest
Online Shopping
Cell Phones
Imprinted Gifts
Promotional Golf
Career Education
Data Center Solutions




MySpace Joins eBay, Yahoo in Open Profile Push

News Corp. Unit Under Fire for Ties to Hacker

Are Non-PC Devices Hurting 'Net Innovation?

internet.com
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


Linked Data Planet Conference & Expo

CA ERwin® Data Modeler Proven database design and modeling. Efficiently analyze, design and deploy effective database solutions. Whitepaper: Manage SQL Server Deployments
Try it free: CA ERwin® Data Modeler

Access FREE IPSWITCH Networking Tools:
Access FREE IPSWITCH Networking Tools:
Download:
WhatsUp Gold Premium Edition v12
Comprehensive single-site network and application management installs, discovers, and maps network assets in minutes.

Download:
WhatsUp Gold Distributed Edition v12 - Central Site
This powerful network management and application monitoring solution is designed expressly for large enterprise organizations with complex multi-site networks. Reducing management complexity, the solution offers NOC-based views into infrastructure and applications.

Download:
WhatsUp Gold Distributed Edition v12 - Remote Site


Solaris 8 Migration Assistant
Rapidly move your Solaris 8 application environments to new systems running Solaris 10 with the Solaris 8 Migration Assistant. Reduce migration risk while taking advantage of increased performance, reliability and security of the latest SPARC hardware platforms and Solaris 10 OS. »

 
Sun Eco Innovation: Good for Business, Good for the Environment
A complete solution to help you optimize and refresh your datacenter while properly recycling equipment and eliminating eWaste, including money-saving promotions to lower hardware acquisition costs. »

 
Sun Eco Innovation: Power Calculators
Power consumption has increasingly become a priority in customer's minds when purchasing new systems or storage. Sun's Power Calculators provide data on power consumption of Sun products allowing IT managers to better plan the power requirements in the datacenter to achieve better energy and cost savings. »

 
Optimize the Web Tier: Consolidate to Get More Performance in Less Space and Lower Power Consumption
Expansion in the Web tier is generally accomplished by adding more servers whenever extra capacity is needed. As the pool of servers grows larger, however, the complexity of the environment can grow exponentially. »

Production Manager (hands on)
Aquent
US-MA-Cambridge

Justtechjobs.com Post A Job | Post A Resume
DB2
April 21, 2008
DB2 9 and Microsoft Access 2007 Part 1: Getting the Data...
By Paul Zikopoulos

Without a doubt, Microsoft Access 2007 (Access 2007) is one of the most widely used reporting and data persistence tools. Quite often, I see clients export massive amounts of data from their enterprise systems into Access 2007. They tell me they do this because they have so many applications, or information workers skills in the development of applications, built with an Access front-end.

The main problems associated with this approach are as follows:

1.  There are too many copies of the data. Maintaining multiple copies leads to redundant data costs.

2.  There is too much latency with the data. It takes too long to get the latest data to the people who need it. In addition, everyone sees different data with inconsistent points in time with respect to when the data was captured.

3.  The solution is too complex. This much data movement requires its own life cycle: maintenance, batch jobs, and more.

4.  The data is not secure. Because of its portability, data typically resides on minimally secured laptops.

5.  The solution is too expensive. Numerous components lead to increased costs. These costs are often hidden in distributed organizations, but they can be massive -- core operating system licensing costs, additional data server license costs, network costs, patching costs, security costs for a whole new layer of data access, and more.

What’s more, there often comes a time when the IT staff must try desperately to rein in data sprawl and to solve the problems just mentioned. For example, governance is a great motivator for solving the sprawl of Access databases. Faced with such a daunting task, some IT departments define a mission to move Access databases to an enterprise data server, likely Microsoft SQL Server.

I’m not going to perform a competitive analysis of these data servers in this series; however, I will note that I’ve seen dedicated DB2 shops feel that they didn’t have a choice but to select SQL Server for such a mission because they would incur a productivity hit to their project development cycles. I’m writing this series to give you the confidence to let a data decision be a data decision and a tooling decision be a tooling decision.

Now consider leaving all that data in your DB2 (including a DB2 for z/OS) data server and just accessing it. After all, if your enterprise data warehouse (EDW) is built on DB2, it can scale pretty much limitlessly and is designed to handle all kinds of workloads. Or perhaps take those Access 2007 tables and move them to a DB2 data server, but keep all the application logic, reports, forms, and so on, in Access so as not to lose any productivity for your analyst and application development teams.

If you did this, you could achieve the following benefits:

1.  A dramatic reduction in the number of copies of the data, which can help support the goal of presenting a single view of the business through a single version of the truth.

2.  Reduced latency time with fewer input and access paths and near-real-time load and access tools providing up-to-date business intelligence.

3.  A simplified architecture making the environment easier to manage for faster solution development and quicker return-on-investment (ROI)!

4.  A more secure solution since data is locked in one place with enterprise-wide policies.

5.  A less expensive solution. Fewer components lead to reduced costs in both infrastructure and human resources; all this results in lower total cost of ownership (TCO).

The following figure summarizes these approaches:

In a previous series, I detailed how you can solve the same challenges that occur when Microsoft Excel is used to store (rather than just analyze) data in your enterprise. In this series, I’m going to show you how your database selection has no bearing on the productivity your information workers experience with Access; specifically, I’m going to show you how to hook up Access 2007 (the latest version) to a back-end DB2 for Windows data server because things have changed since Access 2003 and versions before that.

Before you start

This series assumes that you have DB2 for Windows installed on your local machine; furthermore, it assumes the SAMPLE database has been created on your local machine too. If you don’t, you can create it by entering the db2sampl –xml –sql command from your operating system’s command prompt. To get a free copy of DB2 that you can use even in production, check out DB2 Express-C.

You can have a remote connection to the SAMPLE database as well, but you need to ensure that you have the proper authorities to catalog data servers, administer the ODBC settings, access to tables, and so on. Generally, I like readers to follow my articles using a local machine, where they created the SAMPLE database personally and have Administrator authority since they will generally have the proper authorities to complete all the steps in the article.

A comment on Access 2007 file formats

Access 2007 has two ways you can connect to external data servers. First, you can link to the target data server. When connecting to an external data source, you can use a main database (MDB) file or an Access 2007 database (ACCDB) file. The ACCDB file format is new in Access 2007 and takes the place of the MDB extension used in previous versions; I’m commenting on both of them here in case you still have a lot of MDB files in your enterprise.

Alternatively, you can use an Access Data Project (ADP). ADP interfaces are built using OLE documents that only contain the front-end presentation items such as an Access report or a form that you may have created. In the background, these objects explicitly connect to a remote data server. ADPs have been around for a while and they don’t look like they’ve been enhanced much in Access 2007. This may lead one to surmise that they are being replaced by MDB and ACCDB files, but that’s my gut feeling.

In Access 2007, MDB and ACCDB files are more useful formats than ADPs: they can link to multiple data sources, don’t have the row limits that ADPs seem to have, and more. For this reason, I’ll try to stick with these more useful formats and stay away from ADP examples.

Getting your DB2 data into Microsoft Access 2007

To use Access 2007 as a front end to your DB2 data server, you first need to create a project. By default, when you start Access 2007, the Getting Started with Microsoft Office Access launch pad opens. For this example, in the Featuring tab, select Blank Database, enter the name DatabaseJournalAccess2DB2 in the File Name field, and click Create.

To connect Access 2007 to a back-end DB2 for Linux, UNIX, and Windows data server, you need to start with a database connection. You can link up Access 2007 to DB2 using the ODBC Database option available within the External Data tab in the Table Tools ribbon:

When you select the ODBC Database option, the Get External Data – ODBC Database window opens.

You can see in the previous window that Access 2007 gives you the option to import tables and their respective data such that they persist in Access 2007. You also have the option to front-end those tables directly by linking to the data source and creating a linked table. With a linked table, the data is available to Access 2007 users, but the data resides on a remote data server. Earlier in this article, I described why storing the same data in multiple places is not good for business. You can avoid doing this by selecting Link to the data source by creating a linked table and clicking OK.

The Select Data Source window opens, as shown below. This window should look familiar to you if you’ve worked with ODBC data sources before and perhaps even if you haven’t.

Assuming you aren’t working with your database connection via a DSN file, select the Machine Data Source tab, select the target data server from the Data Source Name field (in this case, SAMPLE), and click OK.

I didn’t mention in the “Before you start” section that you must have the SAMPLE database registered as an ODBC source (or at least access to the DSN file that represents a connection to the SAMPLE database). I didn’t mention it because many times this will be done automatically for you when you create the SAMPLE database, and typically, you won’t be working with the SAMPLE database for production environments anyway. You can specify that a DB2 database be added to the Machine Data Source list shown in the previous figure when cataloging a remote DB2 data server.

For example, you can use the Configuration Assistant to add a new data server connection using the Add Database using Wizard option and optimize the DB2 database connection for Access as well as register it as an ODBC data source on your server. Alternatively, you can have DB2 create a DSN file for you to redistribute the connection information or have the connection only appear for a specific user defined on your server:

If the target DB2 data server that you want to connect to doesn’t show up in the Data Source Name list, simply click New to add it. The Create New Data Source wizard opens. Select the appropriate radio button that corresponds to the way you want this target data server to be accessible on your system. For our example, select System Data Source, click Next, select the IBM DB2 ODBC Driver (it is automatically installed when you install DB2 on Windows or a client), click Next, and then Finish. This process is shown below:

You can see in the previous figure the two IBM DB2 ODBC Drivers in the Create New Data Source window. This is because DB2 9 supports multiple-installation copies of the product. For example, in this case, I have one version of DB2 9.5 on my machine (denoted by DB295Main) and another separate installation running at the DB2 9 level. This feature is terrific, especially for migration and maintenance.

Go to page: 1  2  Next  

Tools:
Add databasejournal.com to your favorites
Add databasejournal.com to your browser search box
IE 7 | Firefox 2.0 | Firefox 1.5.x
Receive news via our XML/RSS feed

DB2 Archives

Download: Solaris 8 Migration Assistant. Run Solaris 8 apps on the latest SPARC systems and Solaris 10.
Download: SQL Backup & DBA Best Practices eBook.
Whitepaper: HP Integrated Citrix XenServer for HP ProLiant Servers. Sponsored by HP, Citrix, and Intel.
Learn Tools & Techniques to Justify and Fund Your IT Investments. Download Complimentary Report Now!
Data Sheet: IBM Information Server Blade


Latest Forum Threads
DB2 Forum
Topic By Replies Updated
database files move????? db2dba 1 March 25th, 09:02 AM
Missing objects in sysproc schema bocap 0 March 3rd, 07:44 PM
Linked Server - Connect to db2 rayan127 0 February 22nd, 02:10 PM
Difference in DB2 Date returned Indresh_Chadha 1 February 19th, 01:24 PM



Access FREE IPSWITCH Networking Tools:
Access FREE IPSWITCH Networking Tools:
Download:
WhatsUp Gold Premium Edition v12
Comprehensive single-site network and application management installs, discovers, and maps network assets in minutes.

Download:
WhatsUp Gold Distributed Edition v12 - Central Site
This powerful network management and application monitoring solution is designed expressly for large enterprise organizations with complex multi-site networks. Reducing management complexity, the solution offers NOC-based views into infrastructure and applications.

Download:
WhatsUp Gold Distributed Edition v12 - Remote Site





JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
Microsoft Article: HyperV-The Killer Feature in WinServer ‘08
Avaya Article: How to Feed Data into the Avaya Event Processor
Microsoft Article: Install What You Need with Win Server ‘08
HP eBook: Putting the Green into IT
Whitepaper: HP Integrated Citrix XenServer for HP ProLiant Servers
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 1
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 2--The Future of Concurrency
Avaya Article: Setting Up a SIP A/S Development Environment
IBM Article: How Cool Is Your Data Center?
Microsoft Article: Managing Virtual Machines with Microsoft System Center
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Intel Video: Are Multi-core Processors Here to Stay?
On-Demand Webcast: Five Virtualization Trends to Watch
HP Video: Page Cost Calculator
Intel Video: APIs for Parallel Programming
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Sun Download: Solaris 8 Migration Assistant
Sybase Download: SQL Anywhere Developer Edition
Red Gate Download: SQL Backup Pro and free DBA Best Practices eBook
Red Gate Download: SQL Compare Pro 6
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
How-to-Article: Preparing for Hyper-Threading Technology and Dual Core Technology
eTouch PDF: Conquering the Tyranny of E-Mail and Word Processors
IBM Article: Collaborating in the High-Performance Workplace
HP Demo: StorageWorks EVA4400
Intel Featured Algorhythm: Intel Threading Building Blocks--The Pipeline Class
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES