Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. a question for typed dataset

a question for typed dataset

Scheduled Pinned Locked Moved Visual Basic
databasesysadminquestioncsharp
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dcode25
    wrote on last edited by
    #1

    Hello ! i'm new in vb.net.I have to create a project and i have a question : i'm thinking to use typed dataset.The database is on another computer in network (sql server 2008).The database has 20-30 tables and will grow not much (10-20 mb on every year) is true that the dataset keep a full copy of original database on my computer or only the database schema? ( i have read several articles but i don't understand this).is this a performance problem for my situation or no? Thank you in advance.

    S D U 3 Replies Last reply
    0
    • D dcode25

      Hello ! i'm new in vb.net.I have to create a project and i have a question : i'm thinking to use typed dataset.The database is on another computer in network (sql server 2008).The database has 20-30 tables and will grow not much (10-20 mb on every year) is true that the dataset keep a full copy of original database on my computer or only the database schema? ( i have read several articles but i don't understand this).is this a performance problem for my situation or no? Thank you in advance.

      S Offline
      S Offline
      Simon_Whale
      wrote on last edited by
      #2

      Have a look at this Article, first example for SQL Server ADO.NET code example[^] As you can see you take as much data as you require for the operation and not the entire database.

      Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch

      1 Reply Last reply
      0
      • D dcode25

        Hello ! i'm new in vb.net.I have to create a project and i have a question : i'm thinking to use typed dataset.The database is on another computer in network (sql server 2008).The database has 20-30 tables and will grow not much (10-20 mb on every year) is true that the dataset keep a full copy of original database on my computer or only the database schema? ( i have read several articles but i don't understand this).is this a performance problem for my situation or no? Thank you in advance.

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        dcode25 wrote:

        is true that the dataset keep a full copy of original database on my computer or only the database schema?

        No. It only holds the data that you retrieve. Copying an entire database would be very performance prohibitive. What if the DB has 4GB worth of data in it? Or a single table for that matter? How long would it take to copy all that data? The dataset will hold an internal schema of only the columns that you retrieve. That information is lost when the dataset goes out of scope.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak

        D 1 Reply Last reply
        0
        • D Dave Kreskowiak

          dcode25 wrote:

          is true that the dataset keep a full copy of original database on my computer or only the database schema?

          No. It only holds the data that you retrieve. Copying an entire database would be very performance prohibitive. What if the DB has 4GB worth of data in it? Or a single table for that matter? How long would it take to copy all that data? The dataset will hold an internal schema of only the columns that you retrieve. That information is lost when the dataset goes out of scope.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak

          D Offline
          D Offline
          dcode25
          wrote on last edited by
          #4

          Thank you ! But why on internet there are many articles that describe the performance problems on typed dataset.i read that typed dataset hold an offline copy of database.Now dataset holds only the schema or with all the data ?

          D 1 Reply Last reply
          0
          • D dcode25

            Thank you ! But why on internet there are many articles that describe the performance problems on typed dataset.i read that typed dataset hold an offline copy of database.Now dataset holds only the schema or with all the data ?

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

            Neither holds an off-line copy of the database. I have no idea where you got that from. The typed datasets are there to make it easier for new people to work with databases. Frankly, I find them to be a huge pain since they have such a large overhead and they hide much of the work that goes on with databases.

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak

            1 Reply Last reply
            0
            • D dcode25

              Hello ! i'm new in vb.net.I have to create a project and i have a question : i'm thinking to use typed dataset.The database is on another computer in network (sql server 2008).The database has 20-30 tables and will grow not much (10-20 mb on every year) is true that the dataset keep a full copy of original database on my computer or only the database schema? ( i have read several articles but i don't understand this).is this a performance problem for my situation or no? Thank you in advance.

              U Offline
              U Offline
              User 1095073
              wrote on last edited by
              #6

              if you are storing large amount of Data in DataSet then it will take lot of memory. DataSet can have the Data as well as the structure and the relation between the data.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups