Subject | Unable to get FbValidation to run |
---|---|
Author | Paul R. Gardner |
Post date | 2011-05-09T16:55:58Z |
The code seems like it should be really simple:
string cs = "User=SYSDBA;Password=masterke;Database=\"" + PathToMyDatabase + "\";" +
"DataSource=" + ServerName + ";Port=3050;Dialect=3;ServerType=0";
FbValidation fv = new FbValidation();
fv.ConnectionString = cs;
fv.Options = FbValidationFlags.ValidateDatabase | FbValidationFlags.Full;
fv.ServiceOutput += new ServiceOutputEventHandler(ServiceOutput);
fv.Execute();
No code after the Execute() ever fires. The ServiceOutput method is also never called. I can run this with a bad database, good database, bad connection string, or even with Firebird not running and the result is the same.
Anyone see something I'm missing?
string cs = "User=SYSDBA;Password=masterke;Database=\"" + PathToMyDatabase + "\";" +
"DataSource=" + ServerName + ";Port=3050;Dialect=3;ServerType=0";
FbValidation fv = new FbValidation();
fv.ConnectionString = cs;
fv.Options = FbValidationFlags.ValidateDatabase | FbValidationFlags.Full;
fv.ServiceOutput += new ServiceOutputEventHandler(ServiceOutput);
fv.Execute();
No code after the Execute() ever fires. The ServiceOutput method is also never called. I can run this with a bad database, good database, bad connection string, or even with Firebird not running and the result is the same.
Anyone see something I'm missing?