Questions tagged [filestream]

Use the FILESTREAM tag when referencing Microsoft's SQL Server FILESTREAM feature which allows developers/admins to store binary data on the file system instead of in the tables.

Filter by
Sorted by
Tagged with
1 vote
1 answer
418 views

Filestream directory exists for a partition but the corresponding partition does not exist in the database

I am investigating a high memory usage issue of tempdb on a production SQL Server 2017 Enterprise (64-bit) deployment. This is similar to an issue discussed here. The server has two production DBs ...
1 vote
1 answer
1k views

Enable SQL Server FILESTREAM - Windows Based Docker Container (not linux)

I have been struggling for a few days to spin up a windows based docker container running SQL Server 2017 on Windows Server Core 2016. I am using the following image as a starting point: https://hub....
-1 votes
1 answer
27 views

SQL Server: attach database with filestream error 5

I'm trying to attach a database with full text catalog and filestream, but I'm having some issues with the file stream part. Here's the SQL I'm using (according to this article, this should work): use ...
1 vote
1 answer
240 views

Measuring Availability Group synchronization lag - Clarifications

Can I get some help on below As I have started and learning about the Measuring of Availability Group synchronization lag between replicas inclusive of BCP , I want to understand and learn that does ...
1 vote
1 answer
185 views

Can JDBC Oracle file stream blob inserts be speeded up?

I have these four different ways by which I am inserting some file data into an Oracle database using JDBC and PreparedStatements. Approach A ps.setBytes(1, fileDataInByteArray); Approach B Blob ...
0 votes
0 answers
113 views

I cannot write information to a filesystem file from my newly installed MS SQL Server

Hello and thank you for your help. I must write non-tabular information to a file. I have tried a few methods that invoke various stored procedures. The following SQL statement tests this and I ...
0 votes
1 answer
82 views

How to restore a SQL Server bak file (Enabled FileStream ) to Docker version SQL Server?

I have SQL Server 2014 installed on Windows and enabled the FileStream feature. I backed up the database to a .bak file. Now I want to restore the file to my Docker container of SQL Server 2019. ...
0 votes
0 answers
14 views

filestream fulltext-index language-for-wordbreaker

I need to use "_" as a word breaker for full text search. Setting the language as Korean does what I need: SELECT * FROM sys.dm_fts_parser ('Happy_Hour',1042,0,0) When I put "'...
0 votes
0 answers
39 views

Backward compatibility for filestream databases

I have a database on a filestream enabled instance and with file system tables on SQL Server 2019. I am able to generate scripts for schema and data permitting restore on earlier SQL Server versions ...
0 votes
0 answers
238 views

SQL Server FILESTREAM Object Garbage Collection in a Always On Availability Group

We have a production SQL Server 2014 running on FILESTREAM with Always On Availability Group. It has been about 4 years since the servers go live. Recently, we encounter a hard disk space issue on the ...
-1 votes
1 answer
135 views

Attach of renamed files conflicts with original files

I am having difficulties attaching DB in a certain environment while the same scenario works in my dev or other production instances. SCENARIO There is a backup of database files (MDF, NDF, LDF, ...
0 votes
0 answers
113 views

Unable to get FileStream Length with After Insert trigger

I asked this question on StackOverlow, but it mostly received comments about the use of variables and no answer. I program mainly in VB.Net, so my T-SQL knowledge is limited. The reason I'm populating ...
0 votes
2 answers
176 views

How to open a sqlserver FileStream Feature without a restart of the sqlserver instance service?

I've seen replying for how to enable the filestream feature by a sql statement. but when the feature is opened, how to restart the sqlserver service instance to made it effects?
5 votes
1 answer
1k views

How do I reclaim space in filestream data files for database in a SQL Server Availability Groups

I have a SQL 2016 Ent. Edition AG with 3 nodes. We have a database in the AG with 5 filestream tables. Each table is in it's own filestream data file. Today I fixed a bug where all of the files were ...
0 votes
1 answer
118 views

Enabling EFS on FileStream Folders

Please help me on below: Below is my Environment: Windows Server 2012 R2 Standard SQL Server 2014 SP2 GDR Availability Groups 2014 with 3 Node (2 Sync and 1 BCP async) I have 7 Databases with ...
5 votes
1 answer
244 views

Statistics on filestream column

When I try to create a statistics on a filestream column, I get the following error message: Column 'MyColumn' in table 'MyTable' is of a type that is invalid for use as a key column in an index ...
0 votes
0 answers
356 views

Why is the FILESTREAM data not accessible, after AG listener is created?

I'm having a hard time figuring out why my app can't access filestream data, after we enable AG listener. Background info: Initial environment: APP Server Web Server IIS Windows Server 2012 R2 DB ...
8 votes
2 answers
2k views

Sql server 2008 filestream maximum number of rows

We are using filestreams in Microsoft SQL Server 2008 (SP2) - 10.0.4000.0 (X64) and Windows server 2008 to store millions of files. Since there are millions of files all of them are grouped into 100 ...
0 votes
0 answers
108 views

SQL Backup Operation has detected an unexpected file in a FILESTREAM container, what should I do?

BACKUP DATABASE [DB] TO DISK = N C:\Program File... failed with the following error: The backup operation has detected an unexpected file in a FILESTREAM container. The backup operation will ...
0 votes
1 answer
441 views

Stream every row coming from a Postgres function

This is the how the function definition looks: CREATE OR REPLACE FUNCTION my_function(foo NUMERIC) RETURNS SETOF my_type AS $$ DECLARE rec record; BEGIN FOR rec IN SELECT * FROM my_table WHERE ...
0 votes
1 answer
182 views

change file table file stream data folder faces error The container can not be dropped

I want to change file database file stream folder from Drive D to Drive F. I successfully transferred data to new folder but when I want to Remove old file stream folder I face this error: "The ...
-1 votes
1 answer
40 views

I can't identify what is happening in this table with a PDF on it [closed]

I have a table with this config: Now if you look at COLUMN_11, it is a varchar -1. But as far as I know, to insert a PDF file into a table, you need filestream, and the column should be VARBINARY(max)...
4 votes
1 answer
8k views

Sql FILESTREAM garbage collection issue

Updated 3x I'm using FILESTREAM, but am having an issue with garbage collection. The FILESTREAM files are not being cleaned up when I set the column to null. In the event log, there is an enormous ...
0 votes
1 answer
4k views

Do we have any File Table / File Stream like support in any other database than MS SQL Server?

I am looking for an alternative to Microsoft SQL Server's File Tables / File Stream feature. The reason is because I really wanted to use SQL Server File Tables but I am on Linux and using docker. ...
7 votes
1 answer
13k views

Mapping a shared physical folder to filestream

We are working on a project where we have large amounts of images, texts etc which we need to work on in SQL Server. We were thinking of using Filestream and filetable functionality. However, even ...
4 votes
2 answers
3k views

SQL Server Enable filestream without having SQL Server Configuration Manager(so via command line only)

I have SQL server 2017 on a Windows Server 2019 Core installation, no GUI. One of our users wants to use Filestream. I tried to follow this setup and this however, since it requires SSCM I can't ...
0 votes
2 answers
239 views

Guidance on strategy for serving files remotely using SQL Server

Thanks for the help. "I" am the IT department for a small business and my ignorance may keep me from asking the right questions so please bear with me. Currently, we are using MS Access ...
0 votes
1 answer
207 views

Can't open Microsoft Access Database inside a Microsoft SQL Server Filetable Folder

We recently started to migrate the Data on our Fileserver to SQL Server (Version 14) Filetables and I encountered a problem with MS Access Databases (.accdb, Access 2007). When the .accdb file is ...
0 votes
2 answers
3k views

T-SQL to find Database name and if Filestream is enabled for specific Database

Please help me on below query . NOTE : Please excuse my programming skills , the code is of mistakes . I want the output like Database name in one column and the FileStream enabled or disabled in ...
0 votes
0 answers
226 views

Moving Files in SQL as Blob (Filestream)

I have setup both of my Servers with Filestream for T-SQL access (and my DBs). I created tables on both Servers: CREATE TABLE mytable( [UI] UNIQUEIDENTIFIER ROWGUIDCOL NOT NULL UNIQUE DEFAULT (newid()...
2 votes
1 answer
545 views

Enable File Stream SQL Server 2017

I am trying to enable file stream on Microsoft SQL Server 2017, on a Windows Core 2019 Server. I have changed the registry settings at the following location to enable it as there is no GUI. I set ...
1 vote
0 answers
402 views

How to select all files of a SQL Server database from blob folder?

I have a SQL Server database. You can use the following script to create similar database: CREATE DATABASE [test] CONTAINMENT = NONE ON PRIMARY (NAME = N'test', FILENAME = N'C:\Program Files\...
-1 votes
1 answer
576 views

Difference between FILESTREAM and set a path for the file

I think I know about the basic of these situations. 1) when you insert a .PDF file into a database, it will be inside the .MDF file: INSERT INTO normal_table(id ,nome_arquivo,arquivo) SELECT 1,'...
1 vote
1 answer
333 views

What is the purpose of keeping filegroup or filestream backup in MSSQL?

I'm a new DBA for SQL SERVER. Currently I'm learning about filestream on SQL server. So I tried to restore only filegroup of filestream to other database, but I get an error message: An exception ...
2 votes
1 answer
2k views

I'm trying to enable SQL Filestream on Windows Server 2012 and SQL Server 2016 64 bit, Management Studio 2017

The machine config is Windows Server 2012, 64 Bit SQL Server 2016, and SQL Server Management Studio 2017. When I use SQL Server Configuration Manager to enable filestream, it gives me an error that I ...
2 votes
0 answers
127 views

Filestream File Share does not allow files to be created

When attempting to create a file or folder in a SQL filestream file share, Windows presents the following dialog: For those who cannot see the image, the error reads "The file 'New Text Document.txt' ...
1 vote
0 answers
53 views

DCM page in Filestream_Data_Filegroup

I'm doing some research about the DCM (Differential Change Map) page in SQL Server 2016. This is what I discovered so far: page type: 16 each DCM page covers a GAM interval each data file has a DCM ...
2 votes
1 answer
490 views

How to attach a sql db with blobs using a shared folder?

I use the following query for attaching a sql db: CREATE DATABASE [myDb] ON (FILENAME=N'C:\myDb\myDb.mdf'), (FILENAME=N'C:\myDb\myDb_log.ldf'), (FILENAME=N'C:\myDb\FILESTORE') FOR ATTACH In ...
1 vote
0 answers
123 views

SQL Server Transaction Log Full affect on FileStream [closed]

These are general question I would like to receive some inputs from experts with BLOB SQL Data. How will SQL Server Transaction Log (.ldf file) linked to SQL Server FileStream Is it different from ...
1 vote
1 answer
60 views

The MS documentation on FILESTREAM makes it sound like it should only be used for archiving unstructured data. Am I misunderstanding this?

I am building an application that will store small image files (probably less than 1 MB typically) associated with records. I am considering the FILESTREAM option in MSSQL, but I'm a little confused ...
3 votes
1 answer
8k views

Removing filestream from a database

I am trying to remove filestream from my database, so I have to do the following I would like to know how to remove the following: ALTER TABLE AMGR_Documents_Tbl ADD UId uniqueidentifier ROWGUIDCOL ...
1 vote
0 answers
33 views

Removing large image files from production database [duplicate]

The database design for a retail organization has several tables with image columns. These account for around 40% of the table size due to their large size. (Many a DBA issues come from inheriting ...
1 vote
2 answers
544 views

Running out of disk space mid-restore

A colleague of mine reported that an hour after starting a restore the operation failed because the server ran out of disk space. He mentioned that since we are using filestream the size isn't ...
3 votes
0 answers
575 views

Why the disparity between Filestream size and Container folder size?

I have an issue with one of my SQL Server 2014 databases. It appears to me that the Filestream size is significantly larger than the actual Filestream container folder size? ~360Mb larger. The ...
1 vote
1 answer
300 views

Suggestions - Enabling EFS on FileStream Data for SQL Server

If anyone has already tried enabling EFS on FileStream data for multiple databases around 500 GB+, please share your thoughts on feasibility or issues / considerations we should keep in mind. We are ...
0 votes
1 answer
105 views

Backup Structured Data and Unstructured Data seperately in SQL Server - Is it Possible?

Can I get some inputs on below: SQL Server Version : 2014 SP2 GDR with AOAG environment. Is it possible to backup Structured Data & Unstructured Data (FileStream) separately in SQL Server ? For ...
5 votes
1 answer
1k views

Cannot Delete FileStream Group from Sql Server 2008 [duplicate]

We have migrated all our varbinary(max) column data to Azure Blob Storage and so we want to remove the old filestream columns that remain in our Sql 2008 database and the filestream filegroup but when ...
2 votes
0 answers
752 views

Filestream access denied via UNC / SQL

I am having an issue with filestream and accessing the files. From the server itself I can access the files in the filestream folder when browsing direct on that computer. However when I try to browse ...
0 votes
1 answer
741 views

FileStream files won't deleted after records deleteion

I am working in sql server 2016 with Filestream attribute column. I have a column with filestream attribute activated on it. when I insert a reacord in TSQL , the associated file is created in ...
2 votes
1 answer
926 views

Fastest way to determine size of groups of FILESTREAM objects

We have a sql FILESTREAM enabled table, and are wondering what the fastest way is to determine the size grouped by a common criteria, as well as the sum of all objects. To date, we have been using ...