完成服务器和数据库实例配置后,接下来是创建存储数据的真实数据库,因为FILESTREAM(文件流)是专门为存储在文件系统上的二进制数据创建的,使用CREATE DATABASE语句时,专门创建一个FILEGROUP标记为流:
基于57个网页-相关网页
18.3.3 文件数据流(FileStream) 文件数据流(FileStream类)用于读写二进制文 件。其也支持异步文件读写操作,允许对文件 进行随机访问等。
基于36个网页-相关网页
Microsoft states that this will have no effect on existing FileStream operations.
微软声称这对于既有的FileStream操作没有任何影响。
By default, each FileStream USES a buffer of 8kb, so this implementation USES much less memory than the prior code that reads and processes the entire file.
默认情况下,每个FileStream都使用8 KB的缓冲区,因此该实现所使用的内存要远远少于前面读取并处理整个文件的代码。
This method relies on the FileStream class to buffer the input and output files appropriately, so that the code can work byte by byte to perform the necessary processing.
该方法依靠 FileStream 类来适当地缓冲输入和输出文件,以便代码可以逐个字节地执行必要的处理。
应用推荐