All pastes #409555 Raw Edit

Miscellany

public text v1 · immutable
#409555 ·published 2007-03-25 19:59 UTC
rendered paste body
_pasteConInfo = new pasteConnectionInfo();
        using (SqlConnection conn = new SqlConnection(_pasteConInfo.PasteConnectionString))
        {
            SqlCommand cmd = new SqlCommand("EXECUTE sp_getCode 1", conn);
            cmd.Connection.Open();
            SqlDataReader reader = cmd.ExecuteReader();
            while (reader.Read())
            {
                testCase.Text = reader["code"].ToString();
            }
        }