Showing posts with label sql-server. Show all posts
Showing posts with label sql-server. Show all posts

Wednesday, May 30, 2012

What are the pros and cons to keeping SQL in Stored Procs versus Code


What are the advantages/disadvantages of keeping SQL in your C# source code or in Stored Procs? I've been discussing this with a friend on an open source project that we're working on (C# ASP.NET Forum). At the moment, most of the database access is done by building the SQL inline in C# and calling to the SQL Server DB. So I'm trying to establish which, for this particular project, would be best.

Friday, April 6, 2012

Are there any differences between SQL Server and MySQL when it comes to preventing SQL injection?


I am used to developing in PHP/MySQL and have no experience developing with SQL Server. I've skimmed over the PHP MSSQL documentation and it looks similar to MySQLi in some of the methods I read about.