November 15, 2017 at 2:17 am
What is the best ways of storing unstructured data in sql server 2016, except filestream.
November 15, 2017 at 3:52 am
Abhi kr - Wednesday, November 15, 2017 2:17 AMWhat is the best ways of storing unstructured data in sql server 2016, except filestream.
What kind of unstructured data? XML? JSON?
😎
November 15, 2017 at 4:04 am
data will be of type documents - pdf , doc etc
November 15, 2017 at 4:14 am
VARBINARY(MAX) columns. Doesn't have to be filestream, normal VARBINARY(MAX) columns work OK.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
November 15, 2017 at 5:19 am
GilaMonster - Wednesday, November 15, 2017 4:14 AMVARBINARY(MAX) columns. Doesn't have to be filestream, normal VARBINARY(MAX) columns work OK.
I have implemented using Varbinary(max) only , but we are expecting huge data in our pdf or doc files ,
does it will impact performance of our query ?
Please suggest .
November 15, 2017 at 6:37 am
Abhi kr - Wednesday, November 15, 2017 5:19 AMGilaMonster - Wednesday, November 15, 2017 4:14 AMVARBINARY(MAX) columns. Doesn't have to be filestream, normal VARBINARY(MAX) columns work OK.I have implemented using Varbinary(max) only , but we are expecting huge data in our pdf or doc files ,
does it will impact performance of our query ?
Yes, it will have a negative impact as they''ll displace a lot of the buffer pool every time they're queried. That's from storing things in the wrong place. Huge files don't belong in a DB, that's why Filestream was created.
But if you insist on not using filestream, then you don't really have a lot of options. The only place you can put a binary file over 8kb in size is a varbinary(max) column.
Have you considered not putting these things in a relational DB?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
November 15, 2017 at 9:07 am
Rather than storing the large data in the database and if you don't want to use filestream, the simply store the directory/path information of where the files are stored on disk with the understanding that they could "go away" because other people aren't as careful with files as DBAs are with "data".
--Jeff Moden
Change is inevitable... Change for the better is not.
November 15, 2017 at 9:14 am
And the unasked question, why can't you use filestream or filetable?
November 16, 2017 at 9:14 am
Jeff Moden - Wednesday, November 15, 2017 9:07 AMRather than storing the large data in the database and if you don't want to use filestream, the simply store the directory/path information of where the files are stored on disk with the understanding that they could "go away" because other people aren't as careful with files as DBAs are with "data".
We have a similar setup. We have to store a lot of PDF documents and they are stored to a share that only the app and network admins have access to. That helps cut down the other people not being careful part.
November 30, 2017 at 7:41 pm
TUellner - Thursday, November 16, 2017 9:14 AMJeff Moden - Wednesday, November 15, 2017 9:07 AMRather than storing the large data in the database and if you don't want to use filestream, the simply store the directory/path information of where the files are stored on disk with the understanding that they could "go away" because other people aren't as careful with files as DBAs are with "data".We have a similar setup. We have to store a lot of PDF documents and they are stored to a share that only the app and network admins have access to. That helps cut down the other people not being careful part.
Heh... so did we. It was the app and network admins that made a mess. 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 10 posts - 1 through 9 (of 9 total)
You must be logged in to reply to this topic. Login to reply