使用SQL Server 2005:如何使用T-SQL将文件读入SPROC?SQL Server文件操作?
因此,假设我有一个CSV文件,如下所示:
ID,OtherUselessData
1,asdf
2,asdf
3,asdf
等等
我基本上要做到这一点:
Select * from mytable where id in (select id from txtFile)
使用SQL Server 2005:如何使用T-SQL将文件读入SPROC?SQL Server文件操作?
因此,假设我有一个CSV文件,如下所示:
ID,OtherUselessData
1,asdf
2,asdf
3,asdf
等等
我基本上要做到这一点:
Select * from mytable where id in (select id from txtFile)
+1优秀的东西,总是在www.simple-talk.com! – 2009-08-19 19:30:20
雅,我看到了已经,如果needbe将使用它,但是这是一个自定义的存储过程,他写道:我认为有一个内置的SQLSERVER的方式做到这一点? – Scott 2009-08-19 19:43:25
你至少应该看看该程序的代码,就没有必要建立自己的车轮... – 2009-08-19 20:13:10