SQL Server - Enabling FileStream after a DB has been created

前端 未结 2 1583
自闭症患者
自闭症患者 2021-02-01 15:35

We have a database and have decided to enable it for FileStream use. I think I\'ve done everything I\'m supposed to except creating a FileStream Data Container. I can\'t seem to

2条回答
  •  眼角桃花
    2021-02-01 15:57

    To add FS support to existing database just create a new filegroup, then add the fs file;

    alter database YourDatabase
    add filegroup fsGroup contains filestream;
    go
    
    alter database YourDatabase
    add file
      ( NAME = 'fsYourDatabase', FILENAME = 'c:\'
       )
    to filegroup fsGroup;
    go
    

    More here: BOL Link

    And definitely read everything Paul Randal has written about filestream: link

提交回复
热议问题