private void WaitForIndices() { var rowCount = DatabaseAgent.ExecuteScalarCommand("SELECT COUNT(*) FROM CeoView WHERE Contains ([CeoView].[Name], 'Fischer')"); if (!rowCount.Equals(1)) { Thread.Sleep(100); WaitForIndices(); } }