02
Thu, May
6 New Articles

NotesSQL to Palm PDA: Try a Little Tenderness

Development Tools / Utilities
Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times
Last week, I was faced with a daunting task. I had a large name and address database that I wanted to quickly get onto the Palm PDA that IBM had given away at PartnerWorld. That's right! IBM gave away a Palm M105 to every PartnerWorld attendee. Each M105 contained the entire agenda of the PartnerWorld conference. Well, they'd given it away for free, so I decided I was going to make good use of it! I was going to put my entire Notes/Domino contact management database into it as fast as possible. But how? IBM/Lotus!

NotesSQL to the Rescue

I was new to PDAs and had very little time to devote to the project. Also I was stuck in a hotel in San Francisco, desperately needing the information in a truly portable format. What was worse, the name and address database was in Lotus Domino/Notes, and it wasn't in the standard Name and Address Book (NAB) format.

My first, knee-jerk reaction was to consider writing some code, but I honestly didn't have a moment to spare to debug agents or write LotusScript. Also, the format I needed to convert the data to was a comma-separated values (CSV) format so that the standard Palm PDA synchronization software could transform it. The thought of squinting at field variables through the lenses of commas and quotations marks was not pleasant. What I needed were some quick tools to help me make the leap from Notes .nsf files to a file that a PDA could consume.

Then I remembered NotesSQL. NotesSQL is an ODBC driver that Lotus offers free if you are intrepid enough to ferret it out of the Lotus domain. It allows ODBC-enabled data reporting tools, database tools, and application development tools to read, report, and update information that is stored in Domino/Notes .nsf databases.

Why You Need a Special ODBC Driver for Domino/Notes Databases

For those of us who were raised on relational databases such as DB2 or Access, the Notes/Domino database is a real conundrum. Why? Because information within it is in a "document" structure, so there's no telling what field elements are contained within. That's why most database administrators and programmers grit their teeth when they're asked to pull or push information between relational and document database formats.

However, the NotesSQL driver allows you to query a Domino/Notes database using Microsoft's Query interface and then pull or push information quite easily into MS Access or MS Excel data elements. That's what makes using NotesSQL so much more attractive than programming: It's quick and easy, and everything can be done with point-and-click.

The Task of Finding NotesSQL

However, finding NotesSQL is a bit daunting all in its own. IBM/Lotus doesn't really think of NotesSQL as an ODBC driver; they seem to want us to believe it's a full-blown application, so they tend to hide it on their Web sites. Also, they're currently running you through a real gamut of registration and security in order to get to this driver. Lucky me! I had just enough time in my hotel room to squirrel around, find the site, and download the package. It wasn't where I expected to find it, but I was able to find the NotesSQL driver by doing a software search at IBM's Web site: http://www14.software.ibm.com/webapp/download/search.jsp?q=NotesSQL&cat=groupware&S_TACT=&S_CMP=&go=y . Of course, by the time you're looking for it, IBM may have moved it somewhere else.

Setting Up Your ODBC Data Source to NotesSQL

As of this writing, the latest version is 3.01, and it works with Domino 4 and 5 .nsf databases. I'm not certain if it will work with the new Domino/Notes R6 that is currently out in beta.

The NotesSQL package comes in a zip file that self-extracts into a folder off your hard drive. Once you run the installation process, it will throw you directly into the ODBC registration process.

To add the driver to your ODBC sources, click the ADD button to see the window below.

http://www.mcpressonline.com/articles/images/2002/NotesSQLtoPalmPDAV400.gif

Select the NotesSQL Driver, and click Finish.

Next, it will ask you to configure the data source, as shown below.

http://www.mcpressonline.com/articles/images/2002/NotesSQLtoPalmPDAV401.gif

Selecting Your Notes/Domino Database

Name the data source and give it a description. I gave it a name of "Act4Notes" and identified the server as "local" and the database as "MCConCos.nsf."

http://www.mcpressonline.com/articles/images/2002/NotesSQLtoPalmPDAV402.gif

If you click on Options, you can further identify the data source to include a User ID file so that you won't have to sign on each time you access the data source. Note: This may be a security issue with your shop. However, in my environment, it was not a problem.

http://www.mcpressonline.com/articles/images/2002/NotesSQLtoPalmPDAV403.gif

Once you click OK and drop out of the data sources program, you're ready to pull data from the Domino/Notes file using Access, Excel, or some other ODBC-compatible service.

Grabbing Notes/Domino Data into Excel

In my situation, I merely wanted to port data into some application that could create a CSV file. For that reason I chose to use Excel. This is how I did it using the NotesSQL driver.

http://www.mcpressonline.com/articles/images/2002/NotesSQLtoPalmPDAV404.gif

Within Excel, I clicked Data/ImportExternal Data/New Database Query. That opened the ODBC data sources window below.

http://www.mcpressonline.com/articles/images/2002/NotesSQLtoPalmPDAV405.gif

Next, I chose the Act4Notes* data source that I had described earlier and clicked OK. The NotesSQL driver automatically connected me into the Notes .nsf file that I had identified in the ODBC data source description. It then presented me with a list of all the Domino views and forms that were available to me for querying. In this case, the views and forms for this .nsf file looked like this:

http://www.mcpressonline.com/articles/images/2002/NotesSQLtoPalmPDAV406.gif

You can select one or more of these forms or view descriptions, or you can expand each form or view to select the individual fields that you might need. In my case, I only wanted the fields from the Contact form shown below. These fields were to become the columns in my query.

http://www.mcpressonline.com/articles/images/2002/NotesSQLtoPalmPDAV407.gif

Clicking Next> allowed me to filter the data by field and to sort it in a manner that made sense, following the standard MS Query functions. The last screen of the MS Query process allows you to choose to return the data to Excel, view the query through the MS Query viewer, or--if you're running XP--create an OLAP cube from the query.

http://www.mcpressonline.com/articles/images/2002/NotesSQLtoPalmPDAV408.gif

Because I ultimately wanted to put the data into a Palm PDA, I chose to return the data to Excel. I also saved the query under a name I would want to use later.

Note: If you try to extract too many fields using MS Query, clicking the Finish button will do nothing. There is no "Too many fields" message sent to you; you just don't go any further. If that's what's happening to you, click the

Creating a CSV File

My Domino/Notes data was then extracted by the query into rows and columns and returned to the Excel spreadsheet. I then chose to save it as a CSV file because I needed to send it to a Palm PDA. So I clicked File/Save As, and set the Save as Type field to CSV (comma delimited). If you just want to get the data into an Excel spreadsheet, you can just save it as a normal XLS file.

http://www.mcpressonline.com/articles/images/2002/NotesSQLtoPalmPDAV409.gif

Putting the Data into the Palm PDA

The final step to getting the data into the Palm PDA required me to use the Palm OS Desktop application that came with the PDA. Under normal use, this application enables you to synchronize your desktop files with the PDA, using a cable that stretches between your PDA and your desktop computer. It also allows you, however, to "link" an external file into one of your Palm PDA applications. In my case, I wanted to link the new CSV file that I'd just extracted from the Notes/Domino database into my PDA address book.

Within the Palm Desktop software, I clicked Hot Sync/File Link and was presented with a selection screen that looked like this:

http://www.mcpressonline.com/articles/images/2002/NotesSQLtoPalmPDAV410.gif

I selected Create a new link and clicked Next>. I was then prompted to choose the application into which I would link the new data, the file name of the CSV file that contained the data, and the Category into which the new data would be slotted. This screen is shown below.

http://www.mcpressonline.com/articles/images/2002/NotesSQLtoPalmPDAV411.gif

Clicking the Next> button sent me to a window that allowed me to "map" each field within the PDA application to each field that was in the file that I had saved as a CSV file. By moving the fields up and down within the two windows, I was able to map fairly closely the fields that I would need in my PDA.

http://www.mcpressonline.com/articles/images/2002/NotesSQLtoPalmPDAV412.gif

I could also test the map by scanning records within the CSV file to see if they matched the appropriate application fields for the PDA. When done, I clicked OK. I was then provided with an option to set the update frequency. In my case, I only wanted to populate the PDA once.

Synchronizing the Notes/Domino Data to the PDA

The final step to getting the data into the PDA was now very simple. I merely set the PDA into the sync cradle that came with it, connected to the serial port of the PC, and pressed the Hot Sync button. The PDA automatically grabbed the data off the PC and loaded it into the Address Book application in its memory.

When next I looked in my PDA address book, there were all the records I'd downloaded from the Notes/Domino database, listed under the category that I had chosen. It was great!

Some Caveats

I used this technique to quickly populate my PDA with data off the Notes/Domino database. However, this is not strictly a two-way replication process. If I were to make a change to the data within the PDA, the next synchronization would, in fact, upload those changes into the CSV file. However, those changes would not be further reflected in the Lotus Notes/Domino database itself. Why? Because I chose Excel as my medium for extraction! The MS Query that I used could only "extract" and "import" data into Excel. Excel does not allow you to export through the NotesSQL ODBC driver. Consequently, it's not an adequate mechanism to upload data into the .nsf database. To do that, you would need to create a real program to use the NotesSQL ODBC driver. Or, if you're familiar with MS Access, you could use the NotesSQL driver to populate an Access database instead of an Excel spreadsheet.

Quick, Easy, Cheap--A One-Shot Solution

In my case, populating the PDA gave me a quick snapshot of the Notes/Domino database, allowing me to portably use the data during the conference. It was a perfect solution. I was able to get the data quickly, step-by-step, and put it into the PDA without a hitch, and it didn't cost me a nickel. The entire transformation--from the time I downloaded the NotesSQL driver until the time I had the 2000 record database in my PDA--took less than an hour and a half to configure in my hotel room. Goodness knows how long an effort it might have been had I attempted "brute-force programming" with LotusScript, VB, or Java.

As it was, I got the data just in time to run downstairs to the hotel bar to tip elbows with all those business contacts whose names I might have forgotten without my new PDA.

Hey! Thanks IBM and Lotus! Next time, how about a free eServer giveaway?

Thomas M. Stockwell is Editor in Chief of MCMagOnline. He can be reached at This email address is being protected from spambots. You need JavaScript enabled to view it..

Thomas Stockwell

Thomas M. Stockwell is an independent IT analyst and writer. He is the former Editor in Chief of MC Press Online and Midrange Computing magazine and has over 20 years of experience as a programmer, systems engineer, IT director, industry analyst, author, speaker, consultant, and editor.  

 

Tom works from his home in the Napa Valley in California. He can be reached at ITincendiary.com.

 

 

BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$0.00 Raised:
$

Book Reviews

Resource Center

  • SB Profound WC 5536 Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application. You can find Part 1 here. In Part 2 of our free Node.js Webinar Series, Brian May teaches you the different tooling options available for writing code, debugging, and using Git for version control. Brian will briefly discuss the different tools available, and demonstrate his preferred setup for Node development on IBM i or any platform. Attend this webinar to learn:

  • SB Profound WP 5539More than ever, there is a demand for IT to deliver innovation. Your IBM i has been an essential part of your business operations for years. However, your organization may struggle to maintain the current system and implement new projects. The thousands of customers we've worked with and surveyed state that expectations regarding the digital footprint and vision of the company are not aligned with the current IT environment.

  • SB HelpSystems ROBOT Generic IBM announced the E1080 servers using the latest Power10 processor in September 2021. The most powerful processor from IBM to date, Power10 is designed to handle the demands of doing business in today’s high-tech atmosphere, including running cloud applications, supporting big data, and managing AI workloads. But what does Power10 mean for your data center? In this recorded webinar, IBMers Dan Sundt and Dylan Boday join IBM Power Champion Tom Huntington for a discussion on why Power10 technology is the right strategic investment if you run IBM i, AIX, or Linux. In this action-packed hour, Tom will share trends from the IBM i and AIX user communities while Dan and Dylan dive into the tech specs for key hardware, including:

  • Magic MarkTRY the one package that solves all your document design and printing challenges on all your platforms. Produce bar code labels, electronic forms, ad hoc reports, and RFID tags – without programming! MarkMagic is the only document design and print solution that combines report writing, WYSIWYG label and forms design, and conditional printing in one integrated product. Make sure your data survives when catastrophe hits. Request your trial now!  Request Now.

  • SB HelpSystems ROBOT GenericForms of ransomware has been around for over 30 years, and with more and more organizations suffering attacks each year, it continues to endure. What has made ransomware such a durable threat and what is the best way to combat it? In order to prevent ransomware, organizations must first understand how it works.

  • SB HelpSystems ROBOT GenericIT security is a top priority for businesses around the world, but most IBM i pros don’t know where to begin—and most cybersecurity experts don’t know IBM i. In this session, Robin Tatam explores the business impact of lax IBM i security, the top vulnerabilities putting IBM i at risk, and the steps you can take to protect your organization. If you’re looking to avoid unexpected downtime or corrupted data, you don’t want to miss this session.

  • SB HelpSystems ROBOT GenericCan you trust all of your users all of the time? A typical end user receives 16 malicious emails each month, but only 17 percent of these phishing campaigns are reported to IT. Once an attack is underway, most organizations won’t discover the breach until six months later. A staggering amount of damage can occur in that time. Despite these risks, 93 percent of organizations are leaving their IBM i systems vulnerable to cybercrime. In this on-demand webinar, IBM i security experts Robin Tatam and Sandi Moore will reveal:

  • FORTRA Disaster protection is vital to every business. Yet, it often consists of patched together procedures that are prone to error. From automatic backups to data encryption to media management, Robot automates the routine (yet often complex) tasks of iSeries backup and recovery, saving you time and money and making the process safer and more reliable. Automate your backups with the Robot Backup and Recovery Solution. Key features include:

  • FORTRAManaging messages on your IBM i can be more than a full-time job if you have to do it manually. Messages need a response and resources must be monitored—often over multiple systems and across platforms. How can you be sure you won’t miss important system events? Automate your message center with the Robot Message Management Solution. Key features include:

  • FORTRAThe thought of printing, distributing, and storing iSeries reports manually may reduce you to tears. Paper and labor costs associated with report generation can spiral out of control. Mountains of paper threaten to swamp your files. Robot automates report bursting, distribution, bundling, and archiving, and offers secure, selective online report viewing. Manage your reports with the Robot Report Management Solution. Key features include:

  • FORTRAFor over 30 years, Robot has been a leader in systems management for IBM i. With batch job creation and scheduling at its core, the Robot Job Scheduling Solution reduces the opportunity for human error and helps you maintain service levels, automating even the biggest, most complex runbooks. Manage your job schedule with the Robot Job Scheduling Solution. Key features include:

  • LANSA Business users want new applications now. Market and regulatory pressures require faster application updates and delivery into production. Your IBM i developers may be approaching retirement, and you see no sure way to fill their positions with experienced developers. In addition, you may be caught between maintaining your existing applications and the uncertainty of moving to something new.

  • LANSAWhen it comes to creating your business applications, there are hundreds of coding platforms and programming languages to choose from. These options range from very complex traditional programming languages to Low-Code platforms where sometimes no traditional coding experience is needed. Download our whitepaper, The Power of Writing Code in a Low-Code Solution, and:

  • LANSASupply Chain is becoming increasingly complex and unpredictable. From raw materials for manufacturing to food supply chains, the journey from source to production to delivery to consumers is marred with inefficiencies, manual processes, shortages, recalls, counterfeits, and scandals. In this webinar, we discuss how:

  • The MC Resource Centers bring you the widest selection of white papers, trial software, and on-demand webcasts for you to choose from. >> Review the list of White Papers, Trial Software or On-Demand Webcast at the MC Press Resource Center. >> Add the items to yru Cart and complet he checkout process and submit

  • Profound Logic Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application.

  • SB Profound WC 5536Join us for this hour-long webcast that will explore:

  • Fortra IT managers hoping to find new IBM i talent are discovering that the pool of experienced RPG programmers and operators or administrators with intimate knowledge of the operating system and the applications that run on it is small. This begs the question: How will you manage the platform that supports such a big part of your business? This guide offers strategies and software suggestions to help you plan IT staffing and resources and smooth the transition after your AS/400 talent retires. Read on to learn: