I want to execute this stored procedure from a C# program.
I have written the following stored procedure in a SqlServer query window and saved it as stored1:
Please check out Crane (I'm the author)
https://www.nuget.org/packages/Crane/
SqlServerAccess sqlAccess = new SqlServerAccess("your connection string"); var result = sqlAccess.Command().ExecuteNonQuery("StoredProcedureName");
Also has a bunch of other features you might like.