我正在尝试将数据从Text文件导入到Sql Server;我收到了错误
... path not found.
我更改提供程序后,出现错误
The 'Microsoft Text Driver Data Source=C:\CETS\genset_20090110_0511.TXT'
provider is not registered on the local machine.
我使用了以下代码:
$string strconn2 = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source="
+ p_Excel_Path2 + ";Extended Properties='text;HDR=Yes;FMT=tab'";
也尝试了这个:
string strconn1 = "Provider=Microsoft Text Driver (*.txt)" + "Data Source="
+ p_Excel_Path1 + ";Extensions=txt";
但我收到同样的错误。