SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SQL Server 2008 T-SQL Enhancements Part - IV


SQL Server 2008 T-SQL Enhancements Part - IV

Author
Message
Arshad Ali-556241
Arshad Ali-556241
SSC-Enthusiastic
SSC-Enthusiastic (116 reputation)SSC-Enthusiastic (116 reputation)SSC-Enthusiastic (116 reputation)SSC-Enthusiastic (116 reputation)SSC-Enthusiastic (116 reputation)SSC-Enthusiastic (116 reputation)SSC-Enthusiastic (116 reputation)SSC-Enthusiastic (116 reputation)

Group: General Forum Members
Points: 116 Visits: 194
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/
sknox
sknox
SSCrazy
SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)

Group: General Forum Members
Points: 2578 Visits: 2827
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)?
RJ-476420
RJ-476420
SSC Eights!
SSC Eights! (812 reputation)SSC Eights! (812 reputation)SSC Eights! (812 reputation)SSC Eights! (812 reputation)SSC Eights! (812 reputation)SSC Eights! (812 reputation)SSC Eights! (812 reputation)SSC Eights! (812 reputation)

Group: General Forum Members
Points: 812 Visits: 760
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
deanroush
deanroush
Valued Member
Valued Member (66 reputation)Valued Member (66 reputation)Valued Member (66 reputation)Valued Member (66 reputation)Valued Member (66 reputation)Valued Member (66 reputation)Valued Member (66 reputation)Valued Member (66 reputation)

Group: General Forum Members
Points: 66 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?
RJ-476420
RJ-476420
SSC Eights!
SSC Eights! (812 reputation)SSC Eights! (812 reputation)SSC Eights! (812 reputation)SSC Eights! (812 reputation)SSC Eights! (812 reputation)SSC Eights! (812 reputation)SSC Eights! (812 reputation)SSC Eights! (812 reputation)

Group: General Forum Members
Points: 812 Visits: 760
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
diopbirama
diopbirama
SSC Rookie
SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)SSC Rookie (47 reputation)

Group: General Forum Members
Points: 47 Visits: 231
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
jacob sebastian
jacob sebastian
SSC Eights!
SSC Eights! (998 reputation)SSC Eights! (998 reputation)SSC Eights! (998 reputation)SSC Eights! (998 reputation)SSC Eights! (998 reputation)SSC Eights! (998 reputation)SSC Eights! (998 reputation)SSC Eights! (998 reputation)

Group: General Forum Members
Points: 998 Visits: 2523
[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

.
rohit_raste
rohit_raste
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
Points: 3 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
SQLRNNR
SQLRNNR
SSC-Dedicated
SSC-Dedicated (31K reputation)SSC-Dedicated (31K reputation)SSC-Dedicated (31K reputation)SSC-Dedicated (31K reputation)SSC-Dedicated (31K reputation)SSC-Dedicated (31K reputation)SSC-Dedicated (31K reputation)SSC-Dedicated (31K reputation)

Group: General Forum Members
Points: 31892 Visits: 18551
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

Toby White
Toby White
Right there with Babe
Right there with Babe (751 reputation)Right there with Babe (751 reputation)Right there with Babe (751 reputation)Right there with Babe (751 reputation)Right there with Babe (751 reputation)Right there with Babe (751 reputation)Right there with Babe (751 reputation)Right there with Babe (751 reputation)

Group: General Forum Members
Points: 751 Visits: 639
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.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search