• Welcome to Valhalla Legends Archive.
 

[VB .NET]OleDB

Started by Mangix, September 09, 2005, 10:04 PM

Previous topic - Next topic

Mangix

im trying to access a database and do a few stuff with it. well i already have connected to the database but i dont know how to do anything with it. im looking for something that can make a recordset of that. anyone know how i can do this?

MyndFyre

You don't make a RecordSet, that's a COM object.  You'll want to make a DataSet.  I'd go with something like:


OleDbDataAdapter da = new OleDbDataAdapter(myConnection, new OleDbCommand("SELECT * FROM Users;"));
DataSet ds = new DataSet();
da.Fill(ds);

That's the best of my memory.  A DataSet can represent more than one table.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Mangix