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. C#
  4. Adding table into database

Adding table into database

Scheduled Pinned Locked Moved C#
questiondatabase
4 Posts 3 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.
  • P Offline
    P Offline
    peppepinna
    wrote on last edited by
    #1

    Hi all, i have a question: it's possible to fill a dataset with all the tables of my database? thanx

    M S 2 Replies Last reply
    0
    • P peppepinna

      Hi all, i have a question: it's possible to fill a dataset with all the tables of my database? thanx

      M Offline
      M Offline
      MudkiSekhon
      wrote on last edited by
      #2

      I think it may be possible. The dataset has Tables collection which stores all the tables that u are storing. U have to test it by using maximum number of tables. Regards, Sandy Sekhon

      P 1 Reply Last reply
      0
      • P peppepinna

        Hi all, i have a question: it's possible to fill a dataset with all the tables of my database? thanx

        S Offline
        S Offline
        Sharpoverride
        wrote on last edited by
        #3

        I had the same question a while ago... it's verry simple you take a command object for example : OleDbCommand createTable = new OleDbCommand(); createTable.Connection = aValidConnectionObject; createTable.CommandText = "CREATE TABLE TableName { obj varchar(0), } "; I'm not sure on the sql part... but that is the main idea. I have an example written at school .. have to look into it! Lazar Mihai Highschool student

        1 Reply Last reply
        0
        • M MudkiSekhon

          I think it may be possible. The dataset has Tables collection which stores all the tables that u are storing. U have to test it by using maximum number of tables. Regards, Sandy Sekhon

          P Offline
          P Offline
          peppepinna
          wrote on last edited by
          #4

          Thanx but i can fill my dataset with select command, and the select command it's possible only at one table. If i have a database with no tables and i want to adding a table by code i dont know how i can do this. Regards

          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