[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

multiple-step ole db operation error opening ADO connection.

Posted on 2004-11-18
6
Medium Priority
?
609 Views
Last Modified: 2012-06-21
I am trying to Open an OLE DB connection to my Visual FoxPro connection.  On the open statement, I am getting an error saying "Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done".  This exact same connection opens fine on a different PC but only on my new PC does this fail.  I went to the following link on Microsoft's website "http://support.microsoft.com/kb/269495/EN-US/" and the value that it says to add to my registry is arleady there.   I am at a loss.  

My connection string is as follows:

Public cn As New OleDbConnection("Provider=vfpoledb.1 ;Data Source=\\server\amw.dbc;Mode=ReadWrite|Share Deny None;Collating Sequence=MACHINE;Password=''")
0
Comment
Question by:britttd
  • 3
  • 3
6 Comments
 
LVL 7

Expert Comment

by:jacobhoover
ID: 12617813
Are there any errors in the error collection?  

If so, what are they?
0
 

Author Comment

by:britttd
ID: 12618062
How do I look in this?
0
 
LVL 7

Expert Comment

by:jacobhoover
ID: 12628432
           Try
                  Me.Connection.Open()
            Catch e As System.Data.OleDb.OleDbException
                  Dim err As System.Data.OleDb.OleDbError
                  For Each err In e.Errors()
                        System.Diagnostics.Debug.WriteLine(e.Message)
                  Next
            End Try
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:britttd
ID: 12629413
Only error that comes up is:

Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.
0
 
LVL 7

Accepted Solution

by:
jacobhoover earned 2000 total points
ID: 12630247
Do you have the Visual Fox Pro provider on your new machine?

Also, the call to :
  System.Diagnostics.Debug.WriteLine(e.Message)
will only be seen from inside your debugger.  If you don't have a debugger installed on the "new" machine, you may have to use a different means of showing the error... Ie, creating a messagebox and displaying each of the e.Message in it.
0
 

Author Comment

by:britttd
ID: 12726883
I ended up reformatting my machine and it works fine now.  Don't know what it was but it works now so...
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is about my first experience with programming Arduino.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Introduction to Processes

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question