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. Streaming SQL table data to secondary location

Streaming SQL table data to secondary location

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

    Hi there, I want a way to stream data from one table in one database to the same table on a different machine. Is there a way? Any help would be much appreciated. Kind regards, Hugo

    T D I L 4 Replies Last reply
    0
    • B bonkers123

      Hi there, I want a way to stream data from one table in one database to the same table on a different machine. Is there a way? Any help would be much appreciated. Kind regards, Hugo

      T Offline
      T Offline
      Tim Carmichael
      wrote on last edited by
      #2

      Option 1: replication Option 2: write a job to perform the bulk transfer.

      1 Reply Last reply
      0
      • B bonkers123

        Hi there, I want a way to stream data from one table in one database to the same table on a different machine. Is there a way? Any help would be much appreciated. Kind regards, Hugo

        D Offline
        D Offline
        David Mujica
        wrote on last edited by
        #3

        If you don't need to do this in real-time, then you could consider taking a nightly backup of Server A and performing a restore on Server B. Just a thought.

        1 Reply Last reply
        0
        • B bonkers123

          Hi there, I want a way to stream data from one table in one database to the same table on a different machine. Is there a way? Any help would be much appreciated. Kind regards, Hugo

          I Offline
          I Offline
          i j russell
          wrote on last edited by
          #4

          If you are using Sql Server 2005 or later, you can use Service Broker.

          1 Reply Last reply
          0
          • B bonkers123

            Hi there, I want a way to stream data from one table in one database to the same table on a different machine. Is there a way? Any help would be much appreciated. Kind regards, Hugo

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            bonkers123 wrote:

            Is there a way?

            Multiple, and their applicability depends on the type of database that you're using. SQL Server for example has the option to "link" to another database. It also depends a bit on what you expect from the target-table. Does it have to be "up to date" at all times, or would it be sufficient to have access to yesterday's data? To add to the pile of options; you could also use the Microsoft Synchronization Framework.

            I are Troll :suss:

            B 2 Replies Last reply
            0
            • L Lost User

              bonkers123 wrote:

              Is there a way?

              Multiple, and their applicability depends on the type of database that you're using. SQL Server for example has the option to "link" to another database. It also depends a bit on what you expect from the target-table. Does it have to be "up to date" at all times, or would it be sufficient to have access to yesterday's data? To add to the pile of options; you could also use the Microsoft Synchronization Framework.

              I are Troll :suss:

              B Offline
              B Offline
              bonkers123
              wrote on last edited by
              #6

              It has to be up to date at ALL times... It's a sql database...

              1 Reply Last reply
              0
              • L Lost User

                bonkers123 wrote:

                Is there a way?

                Multiple, and their applicability depends on the type of database that you're using. SQL Server for example has the option to "link" to another database. It also depends a bit on what you expect from the target-table. Does it have to be "up to date" at all times, or would it be sufficient to have access to yesterday's data? To add to the pile of options; you could also use the Microsoft Synchronization Framework.

                I are Troll :suss:

                B Offline
                B Offline
                bonkers123
                wrote on last edited by
                #7

                So how do I link a table of one db, to a the same table on a different db ... ?

                L 1 Reply Last reply
                0
                • B bonkers123

                  So how do I link a table of one db, to a the same table on a different db ... ?

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #8

                  From the Management Studio, expand "Server Objects", right-click on "Linked Servers" and select "New Linked Server". There's several options to specify the credentials for the remote database. E.g., if you have Server A (with a master database) and a Server B (with AdventureWorks), then you could execute queries like this;

                  SELECT [name]
                  FROM [master].[sys].[tables]

                  UNION ALL

                  SELECT CAST([VersionDate] AS VARCHAR(50))
                  FROM [ServerB].[AdventureWorks].[dbo].[AWBuildVersion]

                  More information on configuring a linked server can be found here. Hope this helps :)

                  I are Troll :suss:

                  B 1 Reply Last reply
                  0
                  • L Lost User

                    From the Management Studio, expand "Server Objects", right-click on "Linked Servers" and select "New Linked Server". There's several options to specify the credentials for the remote database. E.g., if you have Server A (with a master database) and a Server B (with AdventureWorks), then you could execute queries like this;

                    SELECT [name]
                    FROM [master].[sys].[tables]

                    UNION ALL

                    SELECT CAST([VersionDate] AS VARCHAR(50))
                    FROM [ServerB].[AdventureWorks].[dbo].[AWBuildVersion]

                    More information on configuring a linked server can be found here. Hope this helps :)

                    I are Troll :suss:

                    B Offline
                    B Offline
                    bonkers123
                    wrote on last edited by
                    #9

                    This help ! Thanks !!!!

                    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