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. Database & SysAdmin
  3. Database
  4. Exporting\Importing sql server 2000 data and structure

Exporting\Importing sql server 2000 data and structure

Scheduled Pinned Locked Moved Database
csharpdatabasesql-servervisual-studiosysadmin
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.
  • B Offline
    B Offline
    Berlus
    wrote on last edited by
    #1

    Hello, I am required to supply q programtic solution to import\export the data and the struture (also foreign keys and views) of a table that resides at the sql server using c#. Is there a easy, auto generated way to do so ? I already let visual studio 2005 generate the code for the adapters of the various tables in order to retrieve\update the data. Thanks, Berlus

    M P 2 Replies Last reply
    0
    • B Berlus

      Hello, I am required to supply q programtic solution to import\export the data and the struture (also foreign keys and views) of a table that resides at the sql server using c#. Is there a easy, auto generated way to do so ? I already let visual studio 2005 generate the code for the adapters of the various tables in order to retrieve\update the data. Thanks, Berlus

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      Berlus wrote:

      I already let visual studio 2005 generate the code for the adapters

      Which means you have no idea how your database is structured. These bloody auto generate things are a disaster and should be taken out and shot. Get into query analyser and look into the system table in the master database. Get to know the guts of your database and how it hangs together. 2005-8 has the information schema views but they are based on the sys tables.

      Never underestimate the power of human stupidity RAH

      A 1 Reply Last reply
      0
      • M Mycroft Holmes

        Berlus wrote:

        I already let visual studio 2005 generate the code for the adapters

        Which means you have no idea how your database is structured. These bloody auto generate things are a disaster and should be taken out and shot. Get into query analyser and look into the system table in the master database. Get to know the guts of your database and how it hangs together. 2005-8 has the information schema views but they are based on the sys tables.

        Never underestimate the power of human stupidity RAH

        A Offline
        A Offline
        Ashfield
        wrote on last edited by
        #3

        Mycroft Holmes wrote:

        Which means you have no idea how your database is structured. These bloody auto generate things are a disaster and should be taken out and shot.

        Hurrah, someone that agrees with me. :) Keep the auto generate stuff for the gui parts, learn what your app is actually doing to the database (and how) and most of your problems disappear.

        Bob Ashfield Consultants Ltd

        M 1 Reply Last reply
        0
        • A Ashfield

          Mycroft Holmes wrote:

          Which means you have no idea how your database is structured. These bloody auto generate things are a disaster and should be taken out and shot.

          Hurrah, someone that agrees with me. :) Keep the auto generate stuff for the gui parts, learn what your app is actually doing to the database (and how) and most of your problems disappear.

          Bob Ashfield Consultants Ltd

          M Offline
          M Offline
          Mycroft Holmes
          wrote on last edited by
          #4

          I use a lot of auto generated code, for the stored procs and the class to service the table, mind you I wrote the generator so I know whats under the hood. My greatest worry is that the BOSS is going to demand DB agnostic code - there go all my stored procs.

          Never underestimate the power of human stupidity RAH

          A 1 Reply Last reply
          0
          • M Mycroft Holmes

            I use a lot of auto generated code, for the stored procs and the class to service the table, mind you I wrote the generator so I know whats under the hood. My greatest worry is that the BOSS is going to demand DB agnostic code - there go all my stored procs.

            Never underestimate the power of human stupidity RAH

            A Offline
            A Offline
            Ashfield
            wrote on last edited by
            #5

            Mycroft Holmes wrote:

            I use a lot of auto generated code, for the stored procs and the class to service the table, mind you I wrote the generator so I know whats under the hood.

            Snap. I don't consider that sort of code autogenerated (although I suppose it is really), its the rubbish generated by VS that I object to.

            Bob Ashfield Consultants Ltd

            1 Reply Last reply
            0
            • B Berlus

              Hello, I am required to supply q programtic solution to import\export the data and the struture (also foreign keys and views) of a table that resides at the sql server using c#. Is there a easy, auto generated way to do so ? I already let visual studio 2005 generate the code for the adapters of the various tables in order to retrieve\update the data. Thanks, Berlus

              P Offline
              P Offline
              Paddy Boyd
              wrote on last edited by
              #6

              Have you looked at DTS in SQL Server 2000? It's for this sort of thing...

              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