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
  • 732,580
  • 175
  • 1,330
  • 1,459
Alain Seys
  • 37
  • 7

0 Answers0