数据倒入还是建议用 bcp
if exists (select * from tempdb..sysobjects where id = object_id(N'tempdb..#T'))
drop table [#T]
Create table #T(id int identity(1,1) not null, remark varchar(8001) null)
Insert into #T
Exec master.dbo.xp_cmdshell 'type e:\data.txt'
select * from #T
剩下就靠你自己 根据"数据类型" 整理 "数据格式" 等了.....
时间: 2024-12-02 11:24:29