Two simple database questions

s986

New member
Joined
Mar 13, 2003
Messages
1
What method of OleDbDataAdapter do you use to retrieve records into a dataset? Can you give an example of the syntax?


What database object specifies which tables to use in the database?
 
you can do the following

1. ) creat a oledbConnection
2. ) Open that connection.
3. ) Create an OledbCommand Object
4.) Creat a OleadDataAdapter
5. ) Create a Dataset

then do as follows :

OledbCommand = OledbConnection.CreateCommand
OledbCommand.CommandText = " Select ......."
OledbDataAdapter.SelectCommand = OledbCommand
DledbDataAdapter.Fill(Dataset,"TableName")

Over That will fill the dataset with data
 
Back
Top