Posts Tagged ‘sqlserver’

Executing a SQL Server stored procedure in C#

Are you kidding me? I’m a major amatuer at anything .NET, and after some Googling and about 15 minutes of coding, this works. How ridiculously easy. using System; using System.Collections.Generic; using System.Text; using System.Data; using System.Data.SqlClient;   namespace ExecuteStoredProcedure { class Program { static void Main(string[] args) { SqlConnection conn; try { conn = new [...]