Saturday, Mar 27, 2010, 1:53 PM
Updated the CsvFileTester for Jet 4.0
I was playing around building a tool to let me edit a database table in Excel, so I updated my CvsFileTester project to work in a modern world, including the 32-bit only Jet 4.0 driver you've probably go lying around on your HD.
Enjoy.
7 comments
on this post
Scott:
Monday, Apr 19, 2010, 7:01 AM
Chris Sells:
http://www.microsoft.com/downloads/details.aspx?FamilyID=890cd06b-abf8-4c25-91b2-f8d975cf8c07&displaylang=en
If so, I never heard of it 'til today. Does it do updates, too?
Monday, Apr 19, 2010, 8:13 PM
Scooter:
Tuesday, Apr 20, 2010, 5:56 PM
Santosh:
Friday, Aug 6, 2010, 7:24 AM
Chris Sells:
static DataTable GetRowsFromCsvFile(string folder, string query) {
string connString = string.Format("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\"{0}\"; Extended Properties='text;HDR=Yes;FMT=Delimited(,)';", folder);
using (var conn = new OleDbConnection(connString)) {
using (OleDbCommand cmd = new OleDbCommand(query, conn)) {
conn.Open();
using (OleDbDataAdapter adp = new OleDbDataAdapter(cmd)) {
DataTable table = new DataTable();
adp.Fill(table);
return table;
}
}
}
}
Sunday, Aug 8, 2010, 2:51 PM
Santosh:
<Import Name="StructureUSDownstate" ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\ManageSoft\Imports\HR Import;Extended Properties="text;HDR=Yes;FMT=Delimited";Persist Security Info=False" Query="select * from [NGUS_Downstate#csv]">
Monday, Aug 9, 2010, 6:45 AM
Chris Sells:
Tuesday, Aug 10, 2010, 12:54 PM




