Click here to Skip to main content
15,892,697 members
Home / Discussions / Database
   

Database

 
GeneralRe: Making Multiple "Copies" of a Database Pin
pmarfleet16-Mar-08 0:47
pmarfleet16-Mar-08 0:47 
AnswerRe: Making Multiple "Copies" of a Database Pin
Brendan Vogt16-Mar-08 0:53
Brendan Vogt16-Mar-08 0:53 
QuestionRe: Making Multiple "Copies" of a Database Pin
Brendan Vogt16-Mar-08 1:00
Brendan Vogt16-Mar-08 1:00 
GeneralRe: Making Multiple "Copies" of a Database Pin
pmarfleet16-Mar-08 1:50
pmarfleet16-Mar-08 1:50 
GeneralRe: Making Multiple "Copies" of a Database Pin
Syed Mehroz Alam18-Mar-08 9:47
Syed Mehroz Alam18-Mar-08 9:47 
Questionhow to ON/OFF identity field through sql script? Pin
combo_ci15-Mar-08 23:48
combo_ci15-Mar-08 23:48 
AnswerRe: how to ON/OFF identity field through sql script? Pin
Mark J. Miller17-Mar-08 4:40
Mark J. Miller17-Mar-08 4:40 
GeneralJet DB Error on Windows 2000 [modified] Pin
Dr.Walt Fair, PE15-Mar-08 15:26
professionalDr.Walt Fair, PE15-Mar-08 15:26 
I've searched everywhere and can't seem to find a solution for this one.

I have a C# program that uses an Access DB. The program works fine on all of the Win XP and Vista machines that I've tried, but on a Windows 2000 Professional machine, I get an error when it tries to open the DB connection created with an OleDBConnection object. I get the same error on WinXP if I change the program properties to run in Windows 2000 compatibility mode.

The error is reported as "Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done."

Here's the code snippet that is causing the problem:
<br />
            try<br />
            {<br />
                db = new OleDbConnection(connStr);<br />
                db.Open();<br />
            }<br />
            catch (OleDbException e)<br />
            {<br />
                MessageBox.Show("DB Error: " + e.Errors[0].Message);<br />
            }<br />

The error is generated trying to execute the db.Open() statement.

The database file looks fine using Access 97, 2003 and 2007 on all machines. Apparently it has something to do with the way the connection is created, but I don't understand why it works on a normal XP and Vista machine, but not when run under the Win 2000 compatibility mode. What is different between, say normal XP and running under Win 2000 compatibility on XP?

Any ideas will be appreciated.

The PetroNerd

modified on Saturday, March 15, 2008 11:02 PM

AnswerRe: Jet DB Error on Windows 2000 Pin
Dr.Walt Fair, PE17-Mar-08 5:12
professionalDr.Walt Fair, PE17-Mar-08 5:12 
GeneralNeed to execute a very time consuming Stored procedure on a remote machine. Pin
Rocky#15-Mar-08 1:10
Rocky#15-Mar-08 1:10 
GeneralRe: Need to execute a very time consuming Stored procedure on a remote machine. Pin
Paul Conrad15-Mar-08 8:03
professionalPaul Conrad15-Mar-08 8:03 
GeneralRe: Need to execute a very time consuming Stored procedure on a remote machine. Pin
Rocky#16-Mar-08 21:28
Rocky#16-Mar-08 21:28 
GeneralRe: Need to execute a very time consuming Stored procedure on a remote machine. Pin
Krish - KP16-Mar-08 23:06
Krish - KP16-Mar-08 23:06 
GeneralRe: Need to execute a very time consuming Stored procedure on a remote machine. Pin
Rocky#17-Mar-08 0:03
Rocky#17-Mar-08 0:03 
GeneralRe: Need to execute a very time consuming Stored procedure on a remote machine. Pin
Mark J. Miller17-Mar-08 4:43
Mark J. Miller17-Mar-08 4:43 
GeneralRe: Need to execute a very time consuming Stored procedure on a remote machine. Pin
Rocky#17-Mar-08 6:03
Rocky#17-Mar-08 6:03 
GeneralRe: Need to execute a very time consuming Stored procedure on a remote machine. Pin
Mark J. Miller17-Mar-08 6:13
Mark J. Miller17-Mar-08 6:13 
GeneralRe: Need to execute a very time consuming Stored procedure on a remote machine. Pin
Rocky#17-Mar-08 6:18
Rocky#17-Mar-08 6:18 
GeneralRe: Need to execute a very time consuming Stored procedure on a remote machine. Pin
Mark J. Miller17-Mar-08 6:34
Mark J. Miller17-Mar-08 6:34 
GeneralRe: Need to execute a very time consuming Stored procedure on a remote machine. Pin
Rocky#17-Mar-08 6:46
Rocky#17-Mar-08 6:46 
GeneralRe: Need to execute a very time consuming Stored procedure on a remote machine. Pin
Mark J. Miller17-Mar-08 6:56
Mark J. Miller17-Mar-08 6:56 
GeneralRe: Need to execute a very time consuming Stored procedure on a remote machine. Pin
Rocky#17-Mar-08 7:11
Rocky#17-Mar-08 7:11 
Questionavoiding 1/1/1900 in SQL SERVER? Pin
John Sundar14-Mar-08 23:03
John Sundar14-Mar-08 23:03 
GeneralRe: avoiding 1/1/1900 in SQL SERVER? Pin
Rocky#15-Mar-08 1:06
Rocky#15-Mar-08 1:06 
GeneralRe: avoiding 1/1/1900 in SQL SERVER? Pin
Mark J. Miller17-Mar-08 4:54
Mark J. Miller17-Mar-08 4:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.