How to split filegroup files to more than physical storage drive

  • Are I can spread my database filegroup files to more than storage drive , not on the same storage drive , and stay connected logically as if they in the same drive , for example I want create filegroup named filegroup1 consist of these files : Data1.mdf

    Data2.ndf , Data3.ndf and I want to put every file in different storage drive , I will put Data1.mdf in Drive D , Data2.ndf in Drive F , Data3.ndf in Drive G and SQL Server will read them as filegroup despite they not in the same physical place , If this possible how can I do that

  • MohamedDBA (11/24/2013)


    Are I can spread my database filegroup files to more than storage drive , not on the same storage drive , and stay connected logically as if they in the same drive , for example I want create filegroup named filegroup1 consist of these files : Data1.mdf

    Data2.ndf , Data3.ndf and I want to put every file in different storage drive , I will put Data1.mdf in Drive D , Data2.ndf in Drive F , Data3.ndf in Drive G and SQL Server will read them as filegroup despite they not in the same physical place , If this possible how can I do that

    Yes, you can do this using GUI or t-sql, I'm not if that's what you are asking..

    Regards,
    SQLisAwe5oMe.

  • MohamedDBA (11/24/2013)


    Are I can spread my database filegroup files to more than storage drive , not on the same storage drive , and stay connected logically as if they in the same drive , for example I want create filegroup named filegroup1 consist of these files : Data1.mdf

    Data2.ndf , Data3.ndf and I want to put every file in different storage drive , I will put Data1.mdf in Drive D , Data2.ndf in Drive F , Data3.ndf in Drive G and SQL Server will read them as filegroup despite they not in the same physical place , If this possible how can I do that

    It is absolutely possible. Please refer to Books Online as to how. Lookup "filegroup".

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • MohamedDBA (11/24/2013)


    Are I can spread my database filegroup files to more than storage drive , not on the same storage drive , and stay connected logically as if they in the same drive , for example I want create filegroup named filegroup1 consist of these files : Data1.mdf

    Data2.ndf , Data3.ndf and I want to put every file in different storage drive , I will put Data1.mdf in Drive D , Data2.ndf in Drive F , Data3.ndf in Drive G and SQL Server will read them as filegroup despite they not in the same physical place , If this possible how can I do that

    I'm assuming you have already created the files and want to move them is that correct?

    -----------------------------------------------------------------------------------------------------------

    "Ya can't make an omelette without breaking just a few eggs" 😉

Viewing 4 posts - 1 through 3 (of 3 total)

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