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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. copying the whole table from one server to another server [modified]

copying the whole table from one server to another server [modified]

Scheduled Pinned Locked Moved Database
databasesysadmintutorial
9 Posts 5 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.
  • V Offline
    V Offline
    venu656
    wrote on last edited by
    #1

    Hi Experts iam having two sqlservers .where i want to move entire table from the server1 database with the data to anothers server(server2) datbase using query .plz guide me...... regards venu

    modified on Friday, July 24, 2009 5:55 AM

    D I 2 Replies Last reply
    0
    • V venu656

      Hi Experts iam having two sqlservers .where i want to move entire table from the server1 database with the data to anothers server(server2) datbase using query .plz guide me...... regards venu

      modified on Friday, July 24, 2009 5:55 AM

      D Offline
      D Offline
      DoctorMick
      wrote on last edited by
      #2

      You could use SSIS or linked servers.

      V 1 Reply Last reply
      0
      • D DoctorMick

        You could use SSIS or linked servers.

        V Offline
        V Offline
        venu656
        wrote on last edited by
        #3

        i know using linked servers but using query i shuld get it becoz this query is used in c#..... to execute so many tables ...

        R 1 Reply Last reply
        0
        • V venu656

          i know using linked servers but using query i shuld get it becoz this query is used in c#..... to execute so many tables ...

          R Offline
          R Offline
          Robin_Roy
          wrote on last edited by
          #4

          Hey Venu, Please elaborate a bit more on what exactly are you looking for inside your C# code. Are you trying to transfer data between different databases having identical schema from inside your C# code or you want to query different database at the same time??? Robin

          V 1 Reply Last reply
          0
          • R Robin_Roy

            Hey Venu, Please elaborate a bit more on what exactly are you looking for inside your C# code. Are you trying to transfer data between different databases having identical schema from inside your C# code or you want to query different database at the same time??? Robin

            V Offline
            V Offline
            venu656
            wrote on last edited by
            #5

            hi robin. actual i want to transfer the entire table structure along with datafrom local sqlserver to hosting sqlserver using c#

            M 1 Reply Last reply
            0
            • V venu656

              Hi Experts iam having two sqlservers .where i want to move entire table from the server1 database with the data to anothers server(server2) datbase using query .plz guide me...... regards venu

              modified on Friday, July 24, 2009 5:55 AM

              I Offline
              I Offline
              icanmakeiteasy
              wrote on last edited by
              #6

              hi venu, server1 database structure is static or dynamic??

              icanmakeiteasy

              V I 2 Replies Last reply
              0
              • I icanmakeiteasy

                hi venu, server1 database structure is static or dynamic??

                icanmakeiteasy

                V Offline
                V Offline
                venu656
                wrote on last edited by
                #7

                Server1 is static server

                1 Reply Last reply
                0
                • V venu656

                  hi robin. actual i want to transfer the entire table structure along with datafrom local sqlserver to hosting sqlserver using c#

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

                  This is usually achieved by backing up the local database and restoring it on the host. Additionaly you can script the database and uses SSIS to move the data Or use SQL Compare from http://www.red-gate.com/index.htm?gclid=CLDSwcDM6JsCFcItpAod-kAU5Q to move the code and Data Compare to move the data. This is what I use.

                  Never underestimate the power of human stupidity RAH

                  1 Reply Last reply
                  0
                  • I icanmakeiteasy

                    hi venu, server1 database structure is static or dynamic??

                    icanmakeiteasy

                    I Offline
                    I Offline
                    icanmakeiteasy
                    wrote on last edited by
                    #9

                    then if the table structure is static create a script file for server1 database.., read that file from c#, then manipulate it...

                    icanmakeiteasy

                    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