SQL Server file Stream file group

Source: Internet
Author: User
Tags filegroup

Background:

File streams integrate the database engine with NTFS files by storing BLOB data files on the file system, using T-SQL and Win32 to access data.

File streams use Windows systems to cache data, helping to reduce the potential impact of file stream data on SQL Server performance.

The file stream does not use the SQL Server cache pool and therefore does not reduce the available memory for the query process.

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

To configure SQL Server instance support for FileStream:

The first step:

Step Two:

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

Application of the File flow folder:

When creating a database, we can create a common filegroup or a file stream file group. Unlike normal filegroups, the first file stream file group includes only one file reference,

The file is designated as the operating system folder, not the file, and the path to the last folder must exist, and the last folder must not exist.

Create DATABASE Studio
On primary
(name = ' Studio ', filename= ' E:\DB\Studio.mdf ', SIZE=10MB),

Filegroup Studio_fg_filestream_for_test contains FileStream
(name = ' Studio_fg_filestream_for_test ', filename= ' E:\DB\FileStreamA ') #E: The \db\ folder is present Filestrema does not exist in the file system.

Log on
(name = ' Studio_log ', filename= ' E:\DB\Studio_Log.ldf ', SIZE=10MB);
Go

------------------------------more content next time-----------------------------------------

SQL Server file Stream file group

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.