using (SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["connectionstring"].ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
cmd.CommandType = CommandType.StoredProcedure;
cmd.CommandText = "storedprocedure";
cmd.Parameters.AddWithValue("@param", param);
This connection string connects to the folder containing my databases, and I don’t know how to access the stored procedure in one of those databases. How would I delve deeper to get my stored procedure?
I’m not entirely sure what you mean by folders, but if this is SQL Server 2008, you’d just reference the database/owner(schema?)/name
ex: