0<\/p>\n
I’ve already implemented filestream on our exisiting table. However, I’ve a few questions to ask for FileStream implementation. Before that, here is the quick look of our environment. We’ve around 4-5TB of database which has around 5 BLOB tables. Rightnow, I’m focusing on only one table.The BLOB table size is around 320GB. The number of records would be: 758495. We’ve image size which is between 0kb to 19MB. Is it ok to implement filestream for this scenario? Does it imapact a performance in a long run?<\/p>\n
I followed following steps to implement filestream in my test environment<\/p>\n
sp_RENAME 'fun.newspaper.Fdoc', 'Fdoc_Old' , 'COLUMN'`\nGO\n<\/code><\/pre>\n\n- ADD GUID columnyAlter table fun.newspaper ADD GUID UNIQUEIDENTIFIER ROWGUIDCOL NOT NULL UNIQUE DEFAULT NEWSEQUENTIALID()<\/li>\n
- Migrate Existing BLOB Data Insert Existing BLOB Data into the FILESTREAM Column Check the FILESTREAM Data<\/li>\n<\/ol>\n
In step 5, we’ve already have GUID column. Is it possible to update that GUID column instead of creating a new one. Here is my existing GUID column. In SQL, we couldn’t use modify instead of add in alter command so I’m thinking of right way to implement it:<\/p>\n
Alter table fun.newspaper modify newsIdentifier...\n\n[newsIdentifier] [uniqueidentifier] ROWGUIDCOL NOT NULL,\n<\/code><\/pre>\nIf so, could you please help me to modify existing GUID column instead of creating a new one.<\/p>\n
Also, I would like to know when we backup the database. How to take exact backup and restore for filestream filegroup? In the future, if we need to migrate filestream, what is exact possible way to migrate it?<\/p>\n
How to reclaim space after implementing a filestream?<\/p>\n
If I would like to go with any training, could you please share a link for that.<\/p>","upvoteCount":2,"answerCount":1,"datePublished":"2024-10-10T19:39:33.016Z","author":{"@type":"Person","name":"kattiejones","url":"https://community.spiceworks.com/u/kattiejones"},"suggestedAnswer":[{"@type":"Answer","text":"
0<\/p>\n
I’ve already implemented filestream on our exisiting table. However, I’ve a few questions to ask for FileStream implementation. Before that, here is the quick look of our environment. We’ve around 4-5TB of database which has around 5 BLOB tables. Rightnow, I’m focusing on only one table.The BLOB table size is around 320GB. The number of records would be: 758495. We’ve image size which is between 0kb to 19MB. Is it ok to implement filestream for this scenario? Does it imapact a performance in a long run?<\/p>\n
I followed following steps to implement filestream in my test environment<\/p>\n
\n- Enable FILESTREAM<\/li>\n
- Create a FILESTREAM Filegroup<\/li>\n
- Add a FILESTREAM File<\/li>\n
- Modify the Existing Table - Add a FILESTREAM column<\/li>\n<\/ol>\n
sp_RENAME 'fun.newspaper.Fdoc', 'Fdoc_Old' , 'COLUMN'`\nGO\n<\/code><\/pre>\n\n- ADD GUID columnyAlter table fun.newspaper ADD GUID UNIQUEIDENTIFIER ROWGUIDCOL NOT NULL UNIQUE DEFAULT NEWSEQUENTIALID()<\/li>\n
- Migrate Existing BLOB Data Insert Existing BLOB Data into the FILESTREAM Column Check the FILESTREAM Data<\/li>\n<\/ol>\n
In step 5, we’ve already have GUID column. Is it possible to update that GUID column instead of creating a new one. Here is my existing GUID column. In SQL, we couldn’t use modify instead of add in alter command so I’m thinking of right way to implement it:<\/p>\n
Alter table fun.newspaper modify newsIdentifier...\n\n[newsIdentifier] [uniqueidentifier] ROWGUIDCOL NOT NULL,\n<\/code><\/pre>\nIf so, could you please help me to modify existing GUID column instead of creating a new one.<\/p>\n
Also, I would like to know when we backup the database. How to take exact backup and restore for filestream filegroup? In the future, if we need to migrate filestream, what is exact possible way to migrate it?<\/p>\n
How to reclaim space after implementing a filestream?<\/p>\n
If I would like to go with any training, could you please share a link for that.<\/p>","upvoteCount":2,"datePublished":"2024-10-10T19:39:33.096Z","url":"https://community.spiceworks.com/t/filestream-question/1128647/1","author":{"@type":"Person","name":"kattiejones","url":"https://community.spiceworks.com/u/kattiejones"}}]}}