如何读取UNICODE文本文件?

hongyuan20022003 2008-07-03 04:59:35
如题。
...全文
70 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
fa_ge 2008-07-03
  • 打赏
  • 举报
回复
记取文本文件方法还是很多的

如1:DTS直接导入数据库中
2:select * from opendatasource
('microsoft.jet.oledb.4.0','text;hdr=no;database=文件路径')...[文件名#txt]

3
bulk insert d..t from 'd:\11.txt'
with
(
datafiletype='char',
fieldterminator=',',
rowterminator='\n'
)

4:
exec master..xp_cmdshell 'bcp "pubs..t " in d:\11.txt -c -q -S"服务器" -U"sa" -P""'
liangCK 2008-07-03
  • 打赏
  • 举报
回复
如答

34,590

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧