Store pictures as files or in the database like MSSQL for a web app?
I’m building an ASP .NET web solution that will include a lot of pictures and hopefully a fair amount of traffic. I do really want to achieve performance.
I’m building an ASP .NET web solution that will include a lot of pictures and hopefully a fair amount of traffic. I do really want to achieve performance.
I make an outer join and executed successfully in the informix database but I get the following exception in my code:
I’ve been preaching both to my colleagues and here on SO about the goodness of using parameters in SQL queries, especially in .NET applications. I’ve even gone so far as to promise them as giving immunity against SQL injection attacks.
I want to write some C# code to initialize my database with some seed data. Clearly, this is going to require the ability to be able to set the values of various Identity columns when inserting. I’m using a code-first approach. By default, DbContext handles the database connection and so you can’t SET IDENTITY_INSERT [dbo].[MyTable] ON. So, what I’ve done so far is use the DbContext constructor that lets me specify a DB connection to be used. Then, I set IDENTITY_INSERT to ON in that DB connection, and then try to insert my records using entity framework. Here’s an example of what I’ve got so far:
I have to insert about 2 million rows from a text file.
Specifically, in VS 2008, I want to connect to a data source that you can have by right-clicking on the automatically-generated App_Data folder (an .mdf “database”). Seems easy, and it is once you know how.
I’m trying to achieve exactly what’s explained here:
Creating a threaded private messaging system like facebook and gmail,
however i don’t completly understand Joel Brown’s answer. can any one please explain.
I know this kind of question has been asked many times.
Yet I don’t succeed in displaying an image from my db on a page.
I generated an sql script like this,
I have a database table (named Topics) which includes these fields :