Problem solve Get help with specific problems with your technologies, process and projects.

Domino and SQL server data using ADO

Can Domino connect, pull and push SQL server data using ADO?
There is not a specific connector for ADO (ActiveX Data Object) you can use the standard ODBC (Lotus Script Data Object--LS:DO) or NotesPump. The code example below was garnered from some NotesNet responses from Cristian Muraru. If you need more information, check the Microsoft Knowledge Base for ADO with VB. This should be easy to adapt to LotusScript.

 Dim Connect As Variant Dim RecordSet As Variant Dim Qry As String Dim TableName As String Dim i As Long TableName="A" Set Connect = CreateObject("ADODB.Connection.2.5") Connect.ConnectionString ="DSN=XX" Connect.Open Qry="SELECT * FROM [" & TableName &"]" Set RecordSet = CreateObject("ADODB.Recordset.2.5") RecordSet.Open Qry, Connect,2 , 1 RecordSet.MoveFirst i=0 While Not RecordSet.Eof i=i+1 Print Cstr(i) & " -> " & RecordSet.Fields(aField).Value RecordSet.MoveNext Wend


Dig Deeper on Domino Resources - Part 4



  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...