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. Reading data from ms sql

Reading data from ms sql

Scheduled Pinned Locked Moved Database
databasecsharpmysqlsql-serversysadmin
4 Posts 2 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.
  • R Offline
    R Offline
    RAGHAVENDRAN2007
    wrote on last edited by
    #1

    Hi friends, Can any one help me in, How can i read the data from MSSQl server (Let us say at x database and all tables in that database) and then convert data in to a text format and so that i can save and upload that data into [b]MySql [/b]Data base. I was following a procedure which is satisfactory for few tables but as the table number and size grows my procedure will become a tedious one. Anyhow i will tell the procedure i am following I created a DataIntegrationServices Project which is available in MSSQL2005 server Business Intelligence Development Studio. There i created a dataflowtask where we can give the origin and destination files. Origin was a OLEDB connection to connect the database and destination was a FlatFile. In this way i can convert data from one table to the text format with delimiters we select. But i need to convert some hundred tables, can any one help me in this regard. I use C# language for developing my applications. Can any one suggest me an alternative or enhance the same procedure by certain modifications. Please don't suggest third party tools which i have to buy, i prefer working with code or free available tools. Thank you in advance. N.Raghavendran.:((

    Raghavendran

    P 1 Reply Last reply
    0
    • R RAGHAVENDRAN2007

      Hi friends, Can any one help me in, How can i read the data from MSSQl server (Let us say at x database and all tables in that database) and then convert data in to a text format and so that i can save and upload that data into [b]MySql [/b]Data base. I was following a procedure which is satisfactory for few tables but as the table number and size grows my procedure will become a tedious one. Anyhow i will tell the procedure i am following I created a DataIntegrationServices Project which is available in MSSQL2005 server Business Intelligence Development Studio. There i created a dataflowtask where we can give the origin and destination files. Origin was a OLEDB connection to connect the database and destination was a FlatFile. In this way i can convert data from one table to the text format with delimiters we select. But i need to convert some hundred tables, can any one help me in this regard. I use C# language for developing my applications. Can any one suggest me an alternative or enhance the same procedure by certain modifications. Please don't suggest third party tools which i have to buy, i prefer working with code or free available tools. Thank you in advance. N.Raghavendran.:((

      Raghavendran

      P Offline
      P Offline
      pmarfleet
      wrote on last edited by
      #2

      You could use SQL Server Integration Services (SSIS) to achieve this. For each table, set up a task that writes the contents of that table out to an individual flat (text) file. This site[^] has plenty of useful resources for SSIS.

      Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

      R 1 Reply Last reply
      0
      • P pmarfleet

        You could use SQL Server Integration Services (SSIS) to achieve this. For each table, set up a task that writes the contents of that table out to an individual flat (text) file. This site[^] has plenty of useful resources for SSIS.

        Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

        R Offline
        R Offline
        RAGHAVENDRAN2007
        wrote on last edited by
        #3

        Hi, Can you tell me exactly the way in which i can proceed? Setting up a task for each table in the sense how can i proceed? Should i go for workflowfoundation? or manually select each table and do the process? Is that not feasible implementing a loop? Thanks:)

        Raghavendran

        P 1 Reply Last reply
        0
        • R RAGHAVENDRAN2007

          Hi, Can you tell me exactly the way in which i can proceed? Setting up a task for each table in the sense how can i proceed? Should i go for workflowfoundation? or manually select each table and do the process? Is that not feasible implementing a loop? Thanks:)

          Raghavendran

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

          I'm afraid I'm not an expect in SSIS. You probably can set up a package to iterate over tables in a database but I don't know how to do that. If there are not many tables in your database and the design is not likely to change, you could manually set up tasks to export each table. I suggest you read the SSIS documentation to find out what it is capable of doing.

          Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

          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