Command1.CommandType = CommandType.StoredProcedure
Command1.Connection = MyConnection
Command1.CommandText = "some_sp"
Command1.Parameters.Add("@Param1", 100)
---------------------------------------
Command1.Parameters.Clear
Command1.CommandType = CommandType.Text
Command1.Connection = MyConnection
Command1.CommandText = "SELECT Something FROM Something"