|
From: Steve H. <st...@ab...> - 2012-03-07 18:12:10
|
Hi Guys,
I'm using FbValidation on localhost to provide some level of database
repair.
FirebirdSql.Data.Services.FbValidation validation = new
FirebirdSql.Data.Services.FbValidation();
validation.ConnectionString = connectionString;
validation.Options = FbValidationFlags.ValidateDatabase;
validation.ServiceOutput += FirebirdServiceOutput;
validation.Execute();
This works most of the time. However, If I run this after running a 'SET
statistics INDEX indexname;', it throws the exception
"FirebirdSql.Data.FirebirdClient.FbException (0x80004005): bad parameters on
attach or create database".
I'm guessing this happens because the database is currently busy getting
index statistics. Is there a way to check before the Execute() call and
verify that the database is ready to receive the request? If not,
suggestions?
Thanks.
|