将文本文件导入到SQL Server 2000 [英] Importing Text file to sql server 2000

查看:146
本文介绍了将文本文件导入到SQL Server 2000的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从文本文件导入数据到数据库表.我使用文件系统对象读取数据.但是我不能导入到数据库表.我希望代码从文件系统对象导入到数据库.请帮助我

I want to import Data from Text file to Database table.I read the data using File system object.But I can''t to import to Database Table.I want the code to Import from File System object to Database.Please help me

推荐答案

您可以逐行阅读,创建插入语句并执行此插入语句.
You can read line by line, create insert statements and execute this insert statements.


创建ntext列在表格中,然后将文本文件的内容插入其中.
Create an ntext column in a table then insert the contents of the text file into that.


这篇关于将文本文件导入到SQL Server 2000的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆