Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does an existing varbinary(max) use FILESTREAM or not?

How can I check whether a varbinary(max) column is using FILESTREAM ? For argument's sake, lets say that I inherited a DB and I wanted to check which varbinary(max) columns are using FILESTREAM and which are not. I have tried running sp_columns which does not seem to show anything relevant. If I "right-click -> properties" on the column from SQL Server Management Studio, it does not show anything either. Does anybody know how to check for this?

like image 827
dana Avatar asked Oct 15 '25 09:10

dana


1 Answers

Try this query

SELECT 
    OBJECT_SCHEMA_NAME(C.object_id) AS SchemaName
  , OBJECT_NAME(C.object_id) AS TableName
  , C.name AS ColumnName
FROM 
    sys.columns AS C
WHERE 
    C.is_filestream = 1;
like image 109
JSR Avatar answered Oct 17 '25 08:10

JSR



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!