MSSQL 读取文件
Contents
MSSQL 读取文件
注意反斜杠转义.
需要 SA 或 BULK INSERT 权限.
create table test(
context ntext
);
BULK INSERT test FROM 'c:/pass.txt'
WITH (
DATAFILETYPE = 'char',
KEEPNULLS
);
select * from test;
drop table test;