dbTalk Databases Forums  

FileStream Equivalent in 2005?

microsoft.public.sqlserver.setup microsoft.public.sqlserver.setup


Discuss FileStream Equivalent in 2005? in the microsoft.public.sqlserver.setup forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
SnapDive
 
Posts: n/a

Default FileStream Equivalent in 2005? - 08-24-2009 , 03:26 PM






I was playing with the FileStream goodness in MSSQL 2008 and then I
got hit with a 2005 project. So, can anyone recommend a good strategy
for doing CRUD on images? I have several hundred thousand images to
keep and maintaining a link to a physical file is not sufficient in my
project's case.

Thanks.

Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: FileStream Equivalent in 2005? - 08-24-2009 , 04:31 PM






SnapDive (SnapDive (AT) community (DOT) nospam) writes:
Quote:
I was playing with the FileStream goodness in MSSQL 2008 and then I
got hit with a 2005 project. So, can anyone recommend a good strategy
for doing CRUD on images? I have several hundred thousand images to
keep and maintaining a link to a physical file is not sufficient in my
project's case.
I have a very basic example that I got from SQL Server Magazine on
my web site: http://www.sommarskog.se/blobload.txt.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx

Reply With Quote
  #3  
Old   
SnapDive
 
Posts: n/a

Default Re: FileStream Equivalent in 2005? - 08-24-2009 , 08:38 PM



That looks pretty cool. My problem is that is does not use LINQtoSQL
or Entity Framework to SQL like the rest of the codebase. I'm
websearching around for alternatives, so far coming up dry.

Thanks Erland!




On Mon, 24 Aug 2009 21:31:26 +0000 (UTC), Erland Sommarskog
<esquel (AT) sommarskog (DOT) se> wrote:

Quote:
SnapDive (SnapDive (AT) community (DOT) nospam) writes:
I was playing with the FileStream goodness in MSSQL 2008 and then I
got hit with a 2005 project. So, can anyone recommend a good strategy
for doing CRUD on images? I have several hundred thousand images to
keep and maintaining a link to a physical file is not sufficient in my
project's case.

I have a very basic example that I got from SQL Server Magazine on
my web site: http://www.sommarskog.se/blobload.txt.

Reply With Quote
  #4  
Old   
Jacob Sebastian
 
Posts: n/a

Default Re: FileStream Equivalent in 2005? - 08-24-2009 , 09:39 PM



Does this help you?
http://www.simple-talk.com/sql/sql-t...er-filestream/

"SnapDive" wrote:

Quote:
That looks pretty cool. My problem is that is does not use LINQtoSQL
or Entity Framework to SQL like the rest of the codebase. I'm
websearching around for alternatives, so far coming up dry.

Thanks Erland!




On Mon, 24 Aug 2009 21:31:26 +0000 (UTC), Erland Sommarskog
esquel (AT) sommarskog (DOT) se> wrote:

SnapDive (SnapDive (AT) community (DOT) nospam) writes:
I was playing with the FileStream goodness in MSSQL 2008 and then I
got hit with a 2005 project. So, can anyone recommend a good strategy
for doing CRUD on images? I have several hundred thousand images to
keep and maintaining a link to a physical file is not sufficient in my
project's case.

I have a very basic example that I got from SQL Server Magazine on
my web site: http://www.sommarskog.se/blobload.txt.


Reply With Quote
  #5  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: FileStream Equivalent in 2005? - 08-25-2009 , 01:39 AM



SnapDive (SnapDive (AT) community (DOT) nospam) writes:
Quote:
That looks pretty cool. My problem is that is does not use LINQtoSQL
or Entity Framework to SQL like the rest of the codebase. I'm
websearching around for alternatives, so far coming up dry.
I don't work with either, so I cannot really give any suggestions. But both
LINQ and EF has restrictions with what you can use in SQL Server. For
instance, I learnt last night that you cannot use table-valued parameters
with LINQ or EF.

I would really expect them to deal with varbinary(MAX), though.

--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx

Reply With Quote
  #6  
Old   
SnapDive
 
Posts: n/a

Default Re: FileStream Equivalent in 2005? - 08-25-2009 , 08:19 AM



Sorry, that doesn't help. I need to use LINQ-to-SQL or Entity
Framework and MSSQL 2005, not 2008. 2008 would be easy.

Thanks.


On Mon, 24 Aug 2009 19:39:01 -0700, Jacob Sebastian <Jacob
Sebastian (AT) discussions (DOT) microsoft.com> wrote:

Quote:
Does this help you?
http://www.simple-talk.com/sql/sql-t...er-filestream/

"SnapDive" wrote:


That looks pretty cool. My problem is that is does not use LINQtoSQL
or Entity Framework to SQL like the rest of the codebase. I'm
websearching around for alternatives, so far coming up dry.

Thanks Erland!




On Mon, 24 Aug 2009 21:31:26 +0000 (UTC), Erland Sommarskog
esquel (AT) sommarskog (DOT) se> wrote:

SnapDive (SnapDive (AT) community (DOT) nospam) writes:
I was playing with the FileStream goodness in MSSQL 2008 and then I
got hit with a 2005 project. So, can anyone recommend a good strategy
for doing CRUD on images? I have several hundred thousand images to
keep and maintaining a link to a physical file is not sufficient in my
project's case.

I have a very basic example that I got from SQL Server Magazine on
my web site: http://www.sommarskog.se/blobload.txt.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.