title: How to connect to DB2 from Lotus Notes Client via LotusScript?
body: <p>Just simple using JDBC driver in Java agent works fine. Now I need to connect DB2 from LotusScript. There are many articles like those:
  <a href="http://www.proudprogrammer.no/web/ppblog.nsf/d6plinks/GANI-9DFMRB" rel="nofollow noreferrer">http://www.proudprogrammer.no/web/ppblog.nsf/d6plinks/GANI-9DFMRB</a>
  <a href="https://openntf.org/XSnippets.nsf/snippet.xsp?id=db2-run-from-lotusscript-into-notes-form" rel="nofollow noreferrer">https://openntf.org/XSnippets.nsf/snippet.xsp?id=db2-run-from-lotusscript-into-notes-form</a></p>
  
  <p>but they use ODBC connection or something else. Anyway I don't see where I can define DB2 host and port in my LotusScript agent. Users won't be able to configure ODBC connection on each workstation. I need some Domino native method to connect to DB2. Or where do I define DB2 host/IP and port in this example:
  <a href="https://openntf.org/XSnippets.nsf/snippet.xsp?id=db2-run-from-lotusscript-into-notes-form" rel="nofollow noreferrer">https://openntf.org/XSnippets.nsf/snippet.xsp?id=db2-run-from-lotusscript-into-notes-form</a></p>