I have WinXP but my friend Vista.
Here is the code:
Java
string AccessKonekcija2 = null; AccessKonekcija2 = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\exports_blaise2\\" + textBox22.Text + ".mdb"; System.Data.OleDb.OleDbConnection AccessExcelKonekcija = new System.Data.OleDb.OleDbConnection(AccessKonekcija2); System.Data.OleDb.OleDbCommand AccessExcelKomanda = new System.Data.OleDb.OleDbCommand(); AccessExcelKomanda.Connection = AccessExcelKonekcija; AccessExcelKomanda.CommandText = "SELECT * INTO[Text;HDR=Yes;FMT=Delimited;DATABASE=C:\\exports_blaise2\\zips\\manipulai\\" + value3 + "\\" + textBox22.Text + "\\OUT].[" + value3 + "man.txt] FROM " + value3 + "man"; AccessExcelKonekcija.Open(); AccessExcelKomanda.ExecuteNonQuery(); AccessExcelKonekcija.Close();And the error is:
http://uploadpic.org/storage/2011/fA...re4DT26l5O.png
Can someone tell me whats wrong ?
And how come that I can do that w/o an error.
But my friend not.
I already checked regional setting they are both equal.

Suthish NairRank #92 · 22.8K reputationPosted Jul 5, 2011, 9:48 PM EDT
Janis Peksa145 reputationPosted Jul 5, 2011, 9:53 PM EDT
Manish TewatiaRank #48 · 31.3K reputationPosted Jul 5, 2011, 9:54 PM EDT
Janis Peksa145 reputationPosted Jul 5, 2011, 10:04 PM EDT
Suthish NairRank #92 · 22.8K reputationPosted Jul 6, 2011, 12:15 AM EDT
Janis Peksa145 reputationPosted Jul 6, 2011, 12:34 AM EDT
In regional settings I change "List seperator" and no changes.
It's delimits by default or smth with ";" on my PC.
But on others it's shows error u can see it on pic.
Janis Peksa145 reputationPosted Jul 6, 2011, 4:51 AM EDT
Can someone help me ?
Tried everything from Google...
Dorababu MekaRank #457 · 5.5K reputationPosted Jul 6, 2011, 6:00 AM EDT
Make sure they match.
Standard (US) is ,.
for others it change so try as per your other wise it can lead to subtle errors like the one you're having
For further reference check here
http://blog.van-eerde.net/post/2011/05/17/Text-file-specification-field-separator-matches-decimal-separator-or-text-delimiter.aspx
Janis Peksa145 reputationPosted Jul 6, 2011, 9:25 AM EDT
And regional setting is not doing anything.
I already tried everything with regional settings.
Suthish NairRank #92 · 22.8K reputationPosted Jul 6, 2011, 12:18 PM EDT
Sam HobbsRank #107 · 20.5K reputationPosted Jul 6, 2011, 1:09 PM EDT
I assume that the locale setting for the system that the error occurs in is set to use a "," (comma) as the decimal separator. So it makes sense that that would be a problem. If the file was created using "." (period) as the decimal separator then you need to tell OLEDB to use the correct decimal separator.
If you can change the way the file is created, I suggest using a delimited text format iinstead of CSV. If the data will never have tab characters in it then you can use a tab-delimited format. If the data might have tab characters in it then some other character could be used as a delimiter.
Finally, note that there are other ways to read CSV and tab-delimited text files. There are a few articles in this web site that suggest aternatives; I wrote one of them.
Janis Peksa145 reputationPosted Jul 6, 2011, 9:18 PM EDT
And regional settings is EQUAL in global settings !!!!!!
Sam HobbsRank #107 · 20.5K reputationPosted Jul 6, 2011, 9:47 PM EDT
Janis Peksa145 reputationPosted Jul 6, 2011, 9:59 PM EDT
SELECT * INTO[Text;HDR=Yes;FMT=Delimited(;)
SELECT * INTO[Text;HDR=Yes;FMT=Delimited(|)
And still is ";" delimited.
I tried to change in regional settings "List seperator" to something else and no use of that.
I tried on other computer on who doesn't work delimited change to English (US) regional settings.
No changes for that and error appears.
VulpesRank #55 · 29.2K reputationPosted Jul 7, 2011, 1:15 AM EDT
Janis Peksa145 reputationPosted Jul 7, 2011, 1:20 AM EDT
I placed schema.ini file with needed information in it.
But C# rewrites it.
I'm going to put the data in dataGridView and than export to .txt.
I think it will work good.
Sam HobbsRank #107 · 20.5K reputationPosted Jul 7, 2011, 1:42 AM EDT
Janis Peksa145 reputationPosted Jul 7, 2011, 1:44 AM EDT
Sam HobbsRank #107 · 20.5K reputationPosted Jul 7, 2011, 6:24 AM EDT
Janis Peksa145 reputationPosted Jul 8, 2011, 12:26 AM EDT
Schema like this: .mdb to datagridview to text file.