I’m working on a C# web application project with my teammate, and we can’t decide on the best database approach. Right now, we’re using inline SQL queries written directly in our C# code to talk to our SQL Server database.
Benefits of inline SQL in code:
- No need to deploy database scripts when updating queries
- Much simpler to switch to a different database later
Benefits of stored procedures:
- Better performance from what I’ve heard
- More secure against SQL injection attacks
Which approach would you recommend for a medium-sized web forum application? Are there other important factors I should consider when making this decision?