I need to perform a complex import in a Microsoft SQL Server 2000.
Since doing it in a DTS is too complicated, I\'m trying to do it with a little C# program, but I\'
You have to write your csv file name inside the schema.ini file (not [file.csv], e.g.: test.csv will have a schema.ini with [test.csv] text at line 0:
[test.csv]
Format=Delimited(;)
Commenter is right that you have your provider syntax the wrong way round.
However, this isn't the problem. Unfortunately, you cannot specify a custom delimiter in your oledb connection string. Instead, create a schema.ini file in the same directory as your source file containing the following:
[file.csv]
Format=Delimited(;)
Clumsy, but it does work.
The schema.ini file has to be saved in Unicode or ANSI, not as UTF-8.
Your data file must also be saved as Unicode not UTF-8.