Aspx451.ExternalCalls.MakeSQLCallSync C# (CSharp) Method

MakeSQLCallSync() private method

Make sync SQL calls.
private MakeSQLCallSync ( int count ) : void
count int No of calls to be made.
return void
        private void MakeSQLCallSync(int count)
        {
            SqlConnection conn = null;
            SqlCommand cmd = null;
            SqlDataReader rdr = null;
            for (int i = 0; i < count; i++)
            {
                conn = new SqlConnection(ConnectionString);
                conn.Open();
                cmd = new SqlCommand("GetTopTenMessages", conn);
                cmd.CommandType = CommandType.StoredProcedure;
                rdr = cmd.ExecuteReader();
                rdr.Close();
            }
        }