我的文本文件是这样的。
name :Settings, id :1, preference :Mail
name:test ,id:2,preference :testMail我需要读取该文本文件,并将其作为记录放入sqlserver数据库中。
name id preference
settings 1 Mail
test 2 testMail如何像上面那样解析文本文件.please告诉我
发布于 2012-11-02 17:56:39
使用SQL Management Studio的“导入数据”任务,该任务将生成SSIS包。
发布于 2012-11-02 18:25:35
使用C#.net的SQLbulkcopy方法将文本文件数据插入到sql server表中。
检查此
https://stackoverflow.com/questions/13192852
复制相似问题