Advertisement

03.19.2007 at 01:05PM PDT, ID: 22458971
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.8

Sancler's Solution (Roger) ----> Microsoft.Jet.OLEDB.4.0 --> How do I get this engine to read my CSV files which do not have a extenstion of .txt

Asked by compubyte-sa in Microsoft Visual Basic.Net, .NET, Algorithms

This was a solution given by Sancler (Roger) ; which is really fast in getting a CSV file into a datagrid ; unfortunately I have csv files that are created by a legacy program that does not have the .txt extention; what do I change in this code to make these files laod (File names are  0011.1,  0111.2  1111.2 etc). If  I use these file names the system reports read only error . . . I am using VB STUDIO (2005)

One more thing how can you get a progess bar to display . . where should the hook be?


This is the code:-

Imports System.Data.OleDb

'at the start and

    Private ds As New DataSet

'and

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        Dim cn As String = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
        "Data Source=" & "C:\" & ";" & _
        "Extended Properties=""Text;HDR=NO;FMT=Delimited"""

        Dim conn As New System.Data.OleDb.OleDbConnection(cn)

        Dim da As New System.Data.OleDb.OleDbDataAdapter("SELECT * FROM trial.txt", conn)

        ds.Tables.Clear()
        DataGrid1.DataSource = Nothing
        Dim ticks As Long = Now.Ticks
        da.Fill(ds)
        DataGrid1.DataSource = ds.Tables(0)
        Console.WriteLine((Now.Ticks - ticks) / TimeSpan.TicksPerMillisecond & " milliseconds")

    End Sub

Sancler's comments :-
You will also need to add a text file file called Schema.Ini to the same directory as your tab-delimited text data file.  For the purposes of this demo, the directory is C:\ and the data file is called trial.txt.  Change those values as necessary above and in the following, which is what the Schema.Ini file should contain

[trial.txt]
ColNameHeader=False
Format=TabDelimited
CharacterSet=ANSI

Just a warning.  Don't use "text" as your data file's name (for some reason, this approach doesn't seem to like that) but do use .txt as its extension.

Start Free Trial
[+][-]03.19.2007 at 01:55PM PDT, ID: 18751624

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.19.2007 at 02:17PM PDT, ID: 18751784

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.19.2007 at 02:46PM PDT, ID: 18751992

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.19.2007 at 03:44PM PDT, ID: 18752494

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.19.2007 at 03:59PM PDT, ID: 18752589

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.19.2007 at 04:00PM PDT, ID: 18752600

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.19.2007 at 05:44PM PDT, ID: 18753281

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.20.2007 at 05:40AM PDT, ID: 18755625

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.20.2007 at 06:04AM PDT, ID: 18755783

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.20.2007 at 07:29AM PDT, ID: 18756394

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.20.2007 at 08:31AM PDT, ID: 18756962

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.20.2007 at 08:41AM PDT, ID: 18757066

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.20.2007 at 08:50AM PDT, ID: 18757175

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.20.2007 at 08:59AM PDT, ID: 18757270

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.20.2007 at 09:19AM PDT, ID: 18757488

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.20.2007 at 12:23PM PDT, ID: 18759040

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.20.2007 at 03:54PM PDT, ID: 18760478

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Visual Basic.Net, .NET, Algorithms
Sign Up Now!
Solution Provided By: Sancler
Participating Experts: 2
Solution Grade: A
 
 
[+][-]03.21.2007 at 03:49AM PDT, ID: 18762843

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-44