Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niisar/6b76625d18eec5d4e26d022d2082c7b3 to your computer and use it in GitHub Desktop.
Save niisar/6b76625d18eec5d4e26d022d2082c7b3 to your computer and use it in GitHub Desktop.
Add a FILESTREAM filegroup to the database
-- Add a FILESTREAM filegroup to the database
ALTER DATABASE PhotoLibrary
ADD FILEGROUP FileStreamGroup1 CONTAINS FILESTREAM
-- Add a container to the FILESTREAM filegroup
ALTER DATABASE PhotoLibrary
ADD FILE
(NAME = PhotoLibrary_blobs,
FILENAME = 'C:\Demo\PhotoLibrary\Photos')
TO FILEGROUP FileStreamGroup1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment