Is it possible to execute a select from a file? I have tried the following but without any luck.
Query:
SELECT E_MailL
FROM OCPR
WHERE (CardCode) IN ('c:\temp\test.txt')
The file contains the customer code per line eg
CustomerCode1
CustomerCode2
CustomerCode3
Any advice or samples are welcome.
Database is SQL Server 2017.