Solved

Ms Jet Database

Posted on 2004-09-18
1
171 Views
Last Modified: 2010-04-23
Does the call to DataSet11.Clear() clears the dataset by removing all rows in all tables, but does it remove the rows in the database?
 

Public Class Form1
    Inherits System.Windows.Forms.Form

    Private cmd As System.Data.OleDb.OleDbCommand

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        OleDbDataAdapter1.Fill(DataSet11)
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        cmd = New System.Data.OleDb.OleDbCommand("SELECT * FROM tblStudents where Name = 'Fred'")
        cmd.CommandType = CommandType.Text
        cmd.Connection() = OleDbConnection1

     'Clear the dataset
         'DataSet11.Clear()

        OleDbDataAdapter1.SelectCommand = cmd

        'Call fill again
             OleDbDataAdapter1.Fill(DataSet11)

    End Sub
End Class
0
Comment
Question by:gbilios
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 96

Accepted Solution

by:
Bob Learned earned 50 total points
ID: 12102903
No, the dataset is an in-memory representation of the data in the database.

Bob
0

Featured Post

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!

Question has a verified solution.

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

Suggested Solutions

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

726 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