private ExecuteCommand ( string connectionString, string sql ) : bool | ||
connectionString | string | |
sql | string | |
return | bool |
private void btnFreeCache_Click(object sender, EventArgs e) { if (!_settings.MainDbConnectionInfo.TestConnection()) { MessageBox.Show(Resources.MustSetValidDbConnInfo); return; } MessageBox.Show(LoadEngine.ExecuteCommand(_settings.MainDbConnectionInfo.ConnectionString, "DBCC FREEPROCCACHE") ? "Cache freed" : "Errors encountered"); }
private void btnCleanBuffer_Click(object sender, EventArgs e) { if (!_settings.MainDbConnectionInfo.TestConnection()) { MessageBox.Show(Resources.MustSetValidDbConnInfo); return; } MessageBox.Show(LoadEngine.ExecuteCommand(_settings.MainDbConnectionInfo.ConnectionString, "DBCC DROPCLEANBUFFERS") ? "Buffers cleared" : "Errors encountered"); }
private void btnFreeCache_Click(object sender, EventArgs e) { MessageBox.Show(LoadEngine.ExecuteCommand(_settings.MainDbConnectionInfo.ConnectionString, "DBCC FREEPROCCACHE") ? "Cache freed" : "Errors encountered"); }
private void btnCleanBuffer_Click(object sender, EventArgs e) { MessageBox.Show(LoadEngine.ExecuteCommand(_settings.MainDbConnectionInfo.ConnectionString, "DBCC DROPCLEANBUFFERS") ? "Buffers cleared" : "Errors encountered"); }