Link to home
Start Free TrialLog in
Avatar of Princeinal Suganthi
Princeinal Suganthi

asked on

Is it possible to take input from a file in NotesSQL

For example I have to run a query to fetch data for a list of part numbers. The list is very big say 1000. So I do not want to give all the part numbers in the query instead want to take it from a file say .txt or .xls
Is It possible with Notes SQL?
Avatar of Sjef Bosman
Sjef Bosman
Flag of France image

First you have to read the list, either using normal file input (txt) or the COM interface (xls). Then you can assemble your query as a string. Assuming that's what you want...

But why do you use NotesSQL? Can you explain?
Avatar of Princeinal Suganthi
Princeinal Suganthi

ASKER

Notes SQL to extract data from Notes DB.  We are working for a migration project. So we have to extract all the data from Lotus DB. We use Lotus Scripts to extract any files if present and NoteSQL to extract the fields and values.

First you have to read the list - is it possible using NotesSQL?
Oh... migration... how sad, and what a waste of time and money. Just stay on Notes, upgrade if need be, it's far more reliable.

Extracting data can be done in many ways, of which NotesSQL is one of the worst. Better export everything to data files and folders, or directly into the new environment using LotusScript and COM. You can also use one of the Connectors to connect directly to an SQL server database, all from LotusScript.
Extracting data can be done in many ways, of which NotesSQL is one of the worst - I agree but I cannot change my company's decision.

You can also use one of the Connectors to connect directly to an SQL server database, all from LotusScript - Can you please give, little more explanation on this?
So if the company decides to move to COBOL, you follow? ;-)

Here an example of how to connect to SQL Server:
https://www.experts-exchange.com/questions/27302209/Access-SQL-Server-database-from-Lotus-Notes-using-lsxlc.html
Do you think I can say No :P :) :)

Thank you... I will go through your example
Yes you can!     :D
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.