If you are talking about a 1 time export of data then the best, fastest and easiest way to do this is to build a view and then from the view, do File-Export. Then on the SQL server (I am speaking from the MS SQL vantage point now) do the import into the table you want of the text file that was created on the export.
If it is something that needs to be ongoing and more interactive, you will have to look at the ODBC classes in LotusScript to see how to do this.
- Brownie