Accessing Lotus Botes Database with Visual Basic

Is there a way that I can access a Lotus Notes database to display data on a Visual Basic form? I have written a VB application that works with a SQL Server 2000 and a Microsoft Access database back end. It also interfaces with a Symantec ACT database. All that I want to do is view the data on a VB form.

Subject: Accessing Lotus Botes Database with Visual Basic

Yes, either using the NotesSQL driver for basic, limited data, or via COM and Notes-native methods for more complex tasks.

Subject: RE: Accessing Lotus Botes Database with Visual Basic

Thnaks. Does the Notes ODBC driver come with the copy of Notes? I am going to try and download a trial copy of Notes to test out the data retrieval.

Also is there a data dictionary for Notes so I can view the table structure?

Subject: RE: Accessing Lotus Botes Database with Visual Basic

There is no “table structure” in Notes, which is a big part of the problem. In fact, there’s no guarantee that any two documents in a given database will contain the same set of fields (items), or that if they do that the data in the items will be of the same type.

Proposion’s product is an add-on to Notes, it does not come with Notes in the box. (The assumption is that if you don’t have Notes, you don’t really need a connector to it.)

Frankly, even with a good connector, you’re going to need to wrap your head around Notes. It’s be easier if you didn’t have any relational database experience. I’d suggest reading Richard Scwartz’s introductory segment in the Lotus Notes And Domino 6 Programming Bible – it’s the best structural overview I’ve seen.

Subject: RE: Accessing Lotus Botes Database with Visual Basic

That is what I ran into with ACT. It is a flat file structure, but at least the fields were all the same. I had to use an SDK with their Diagnostic tool that gave me the field names and relative ID numbers.

It sounds interesting that each record will have its own “structure”. What is the Proposion product? I was also reading somewhere in the forum that someone had a question about accessing the data on a web page so there must be some kind of data access mechanism that is consistent.

I will take a look at that book.

Subject: RE: Accessing Lotus Botes Database with Visual Basic

The problem is that you’re thinking “record”. That’s a mistake in Notes. Notes is not record-based, but document-based. Each Note (document) contains what it needs to contain. The closest you can get to “normalised” data is accessing view column values.

As for the web thing, it’s difficult to tell. Domino is as much a web environment as a Notes environment.

Proposion N2N is an intermediary product. It talks to Notes in terms of documents and views and so on, and it talks to ADO.NET in terms of tables and rows. Rich text is accessed as either “big text” or MIME, depending on how much juice you want to squeeze out of the data.

Subject: Accessing Lotus Notes Database with Visual Basic

Also consider the following scenario:

  1. Pump the Notes data into SQL Server using the Notes Connectors and an agent.

  2. Your VB form retrieves the data from SQL Server.

This is less efficient because it uses more storage space and requires you to update SQL Server periodically, and you are not necessarily looking at the latest data all the time. On the plus side, you can dispense with ODBC and you will probably get better performance. And, you can very easily make the data available to other users via SQL Server.

If you had a tool like LEI step 1 would be very simple. It’s not necessarily difficult with agents, but messy and a bit slow.