Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

SQL Server 2008 T-SQL Enhancements Part - IV Expand / Collapse
Author
Message
Posted Friday, August 28, 2009 12:12 AM


Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Friday, November 7, 2014 4:00 AM
Points: 64, Visits: 191
Comments posted to this topic are about the item SQL Server 2008 T-SQL Enhancements Part - IV

With Thanks and Regards
Arshad Ali
Microsoft India

My Blog - http://arshadali.blogspot.com/
Post #778910
Posted Friday, August 28, 2009 6:45 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Today @ 5:39 PM
Points: 1,382, Visits: 1,752
Good article. I have a 3rd party app which will begin using the FILESTREAM attribute in the next major release, and this article gives me a good overview of how it works. I just have one question:

Even though you can access these files if you have required permissions, these files cannot be directly deleted or renamed using the file system. Otherwise the link-level consistency will be lost between the database and the file system as a result of this the database might get corrupted.


For clarification, is it that the files cannot(a) or should not(b) be deleted or renamed? In other words, does SQL Server or Windows actually prevent you from renaming or deleting the files (a), or can you do it, but there will be dire consequences (b)?
Post #779031
Posted Friday, August 28, 2009 8:18 AM
SSChasing Mays

SSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing Mays

Group: General Forum Members
Last Login: Tuesday, October 7, 2014 1:56 PM
Points: 610, Visits: 720
It looks to me that the files reside in a windows folder like any other file which you can indeed rename or delete but when you try to run a query against the database table, the SQL Server will not able to find it & throws an error. In other words, this error is database corruption.

Thanks.
RJ
Post #779135
Posted Friday, August 28, 2009 8:25 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, September 8, 2014 8:18 AM
Points: 26, Visits: 265
I understand the consequences of deleting or renaming a filestream-managed file in the file system, but is there any consequence to updating (replacing) a file directly in the file system? If not, would there be a chance for a performance improvement if many files were being updated directly on a regular basis?
Post #779141
Posted Friday, August 28, 2009 8:30 AM
SSChasing Mays

SSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing Mays

Group: General Forum Members
Last Login: Tuesday, October 7, 2014 1:56 PM
Points: 610, Visits: 720
Updating the contents of a file is a research question. Moreover, it depends on your requirements to update it through sql server or do it directly.

The part I have questions are when you update a row at the table level the article says the old file would still be preserved. Whether later it is garbage collected or its a manual process to clean it up?

--RJ
Post #779145
Posted Friday, August 28, 2009 2:42 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Sunday, December 1, 2013 5:41 AM
Points: 41, Visits: 200
great article,
i'm waiting the part V, hope that will be partition table and index .
I'm a database admin in a a large telco industry in senegal and I want to organize my CDR( call data record) by monthly table within it il wish to create file group by month and also i want to partition the table by day and affect the partition of a day of week to their corresponding filegroup
Post #779317
Posted Monday, August 31, 2009 8:58 AM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Tuesday, December 24, 2013 4:42 AM
Points: 460, Visits: 2,523
[b]
The part I have questions are when you update a row at the table level the article says the old file would still be preserved. Whether later it is garbage collected or its a manual process to clean it up?
--RJ


The file will be removed by a background garbage collector thread


.
Post #779949
Posted Wednesday, September 2, 2009 10:53 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, December 10, 2009 4:09 AM
Points: 1, Visits: 20
Hi,

Its very nice article..author has covered points from start to end in a very neat manner. I am eager to see how it works myself.

Thanks,
Rohit
Post #781644
Posted Friday, March 26, 2010 8:11 AM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Today @ 5:24 PM
Points: 18,060, Visits: 16,092
Thanks for another article in this series.



Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server, MVP


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Post #890659
Posted Tuesday, March 30, 2010 8:44 AM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Friday, November 9, 2012 2:48 PM
Points: 493, Visits: 636
Good article. I am curious about how restoring a backup that includes the filestream on to a dev server might work. Suppose filestream was enabled on the dev server, and the root folder where the filesteam file points also existed. Would the restore just dump the files in the folder with the header? It seems like yes it would, but it also seems like there might be some speed bumps doing this.
Post #892857
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse