EXEC sp_filestream_configure
@enable_level = 3,
@share_name = "FileStreamShare";
CREATE DATABASE BlobDatabase ON PRIMARY
(NAME = Blob, FILENAME = 'C:\Data\Blob.mdf'),
FILEGROUP FSGroup CONTAINS FILESTREAM
(NAME = BlobFS, FILENAME = 'C:\Data\FileStream')
LOG ON ( NAME = BlobLog, FILENAME = 'C:\Data\Blob.ldf');
CREATE TABLE BlobDatabase.dbo.Images (
image_id UNIQUEIDENTIFIER ROWGUIDCOL NOT NULL UNIQUE,
image_desc VARCHAR(35),
image_data VARBINARY(MAX) FILESTREAM NULL);
EXEC sp_configure filestream_access_level, 2;
RECONFIGURE;
Labels: blob, filestream, image, sql server 2008