S
shapper
Hello,
I have a SQL table to hold files information.
One of the table columns is Path which holds values as:
C:\Assets\MyPic.jpg
C:\Assets\MyCV.doc
....
I need to get all record which are images, i.e., which extension
is .jpg, .gif, .png.
Should I use a SQL Stored Procedure or LINQ to filter the paths which
end with the desired extensions?
OR
Should I create, instead, a column named Type and before I insert a
record I would detect in my C# code the file type and fill the Type
column with it?
How is this usually done?
Thank You,
Miguel
I have a SQL table to hold files information.
One of the table columns is Path which holds values as:
C:\Assets\MyPic.jpg
C:\Assets\MyCV.doc
....
I need to get all record which are images, i.e., which extension
is .jpg, .gif, .png.
Should I use a SQL Stored Procedure or LINQ to filter the paths which
end with the desired extensions?
OR
Should I create, instead, a column named Type and before I insert a
record I would detect in my C# code the file type and fill the Type
column with it?
How is this usually done?
Thank You,
Miguel