Results 1 to 2 of 2

Thread: Replicating tables in SQL Server

  1. #1
    Marc Brown Guest

    Replicating tables in SQL Server

    I have a table that is used for reporting, the problem is that the data in the table is refreshed every 30 minutes with a bulk insert. I am trying to find a way to have two tables that are mirror images of each other and when the loading table is loaded, then the table assumes the identity of the reporting table. The basic prinicpal is I need to have the table be available almost all the time and when the bulk insert is happening, users cannot query. Any help would be greatly appreciated.

    Thanks in advance
    Marc Brown

  2. #2
    Michael Hotek Guest

    Replicating tables in SQL Server (reply)

    The simplest way? Create 2 views. One over each table. Have the app hit one of the views. As soon as the data load is done, rename the views so the app is now pointing to the other view.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •