Solved

Ms Jet Database

Posted on 2004-09-18
1
168 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
help with issues with ReportViewer in VS2015 5 38
VB.Net - For Loop Error 5 37
Convert an ASPX page into PDF 7 25
Help with LINQ and XML 10 27
Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
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…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

920 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now