Managing Large Data Sets in SQL Server 2005 and 2008

  • Thanks very much Zack.

    You mean SWITCH really works that fast? That will be great.

    The table I am refering to is mostly used for reporting anyway, we just need to manage the size to improve performance. Another scenario, what if I want the history table in another instance on another host. That is, I do not want to create a new table on the live instance. Is it feasible to use maybe linked servers to acheive this. What other options?

    In addtion, the SWITCH command assumes my production table is partitioned, right? I may not be allowed (by the consultant) to partition this table and thats the big challenge.

    Br. Kenneth Igiri
    https://kennethigiri.com
    All nations come to my light, all kings to the brightness of my rising

  • Yes, the SWITCH requires partitioning.

    Linked Servers do allow separate db servers to connect to one another. Other approaches such as replication and log shipping are used to keep the data the same in both tables which is not what you are trying to do, so linked servers is probably the best approach for you.

    Zach Mided
    www.AllianceGlobalServices.com

  • Thanks so much Zach.

    Finally (hopefully :-)), did you use separate disks for your partitions? How bad can putting all your file group on the same disk/spindle be? (due to cost issues for example).

    Also my table is already almost 180 GB. How long do you think it will take to create partitions it?

    Br. Kenneth Igiri
    https://kennethigiri.com
    All nations come to my light, all kings to the brightness of my rising

  • I used separate disks in order to partition my tables (the largest was 400GB). You will still get some gains even if your file groups are on the same disk, so I would not let that deter you.

    The initial creation of the partitions can definitely take a while. I would recommend creating just one partition and doing it at the beginning of off-hours. Surround the SQL partitioning call with SELECT getdate() so you can get a good measurement of how long it takes to create one partition. That will help you plan for creating the additional partitions.

    Zach Mided
    www.AllianceGlobalServices.com

  • Thank you so much Zach.

    Br. Kenneth Igiri
    https://kennethigiri.com
    All nations come to my light, all kings to the brightness of my rising

Viewing 5 posts - 16 through 19 (of 19 total)

You must be logged in to reply to this topic. Login to reply