简体   繁体   中英

Open .log file with OPENROWSET

How to open text from a .log file in SQL Server?

SELECT * FROM OPENROWSET(BULK N'..\30-09-2014.log', SINGLE_BLOB) AS Document;

This code returns content in binary format, I want text data.

SELECT * FROM OPENROWSET(BULK N'..\30-09-2014.log', SINGLE_CLOB) AS Document;

BLOB to CLOB OR NCLOB

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM