0

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.

marc_s
  • 704,970
  • 168
  • 1,303
  • 1,425
Alain Seys
  • 27
  • 6

0 Answers0