HighTechTalks DotNet Forums  

Problems Filling DataSet Using OleDbDataAdapter in Windows 2000

Dotnet Framework (ODBC.net) microsoft.public.dotnet.framework.odbcnet


Discuss Problems Filling DataSet Using OleDbDataAdapter in Windows 2000 in the Dotnet Framework (ODBC.net) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
William Lee Mapp III
 
Posts: n/a

Default Problems Filling DataSet Using OleDbDataAdapter in Windows 2000 - 10-18-2003 , 12:31 AM






Hello,

I have written code to fill a DataSet using the OleDbDataAdapter. I have
written and tested this code on Windows XP Professional, but the same code
will not work at all running on a computer installed with Win2k SP4.

I have posted a snippet below, and I have placed MessageBox.Show statements
in my code to trace the problem to calling the Fill method on the DataSet.
An OdbcException does not get thrown but instead it looks like something
that was thrown by the framework itself.

I wrote this using VS.NET 2003 and I installed the .NET 1.1 Redistributable
on the computer in question.

Thanks for any help you can provide.

Will

Code:
OleDbConnection conn = KeyMasterMainWindow.GetConnection();

OleDbCommand cmd = conn.CreateCommand();

if(tablename.CompareTo("Company") == 0)

{

cmd.CommandText = strCompanySelect; // = SELECT * FROM Company

companyAdapter = new OleDbDataAdapter(cmd);

companyAdapter.RowUpdated += new
OleDbRowUpdatedEventHandler(Adapter_OnRowUpdate);

companyBuilder = new OleDbCommandBuilder(companyAdapter);

companyAdapter.Fill(ds, "Company"); // Blow up here

adapterTable.Add("Company", companyAdapter);

}


--



__________________________________________________ ___
Today's science fiction is tomorrow's science reality.
Never question the eccentricity of man or the plausibility
of the human spirit.
- William Lee Mapp, III, Dreamer



William Lee Mapp, III
Co-Founder
Managing Officer, BA Systems, LLC
mapp (AT) basystemsllc (DOT) com
http://www.basystemsllc.com

Less Theory, More Reality



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.