I am not really a database guy. I had to use a localdb for an application that I created using ASP.NET MVC 5. Now, I understand that the type of database can easily be changed by altering the connection string.
What I want to do is for me to be able to select the users (preferably based on their Windows credentials) that can read from the database.
I am using a localdb v11.0. My schema looks like this:
File table:
- Id [int]
- content [varbinary(max)]
- Email [nvarchar]
- Access [nvarchar(10)]
How can I do this? Typically, a user will directly try to get the file content from the content
column.
Also, is there a better way to store files in databases?