I'm trying to import data from Text file to Sql Server; I was getting the error
... path not found.
After I changed the provider , I got the error
The 'Microsoft Text Driver Data Source=C:\CETS\genset_20090110_0511.TXT'
provider is not registered on the local machine.
I used the following code:
$string strconn2 = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source="
+ p_Excel_Path2 + ";Extended Properties='text;HDR=Yes;FMT=tab'";
and also have tried this too:
string strconn1 = "Provider=Microsoft Text Driver (*.txt)" + "Data Source="
+ p_Excel_Path1 + ";Extensions=txt";
but I am getting the same error.