Issue Details (XML | Word | Printable)

Key: DNET-399
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Jiri Cincura
Reporter: Can A. Course
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
.NET Data provider

FBValidation does not output any information as to success or failure of a requested Database Validation operation.

Created: 24/Oct/11 06:20 PM   Updated: 24/Oct/11 06:20 PM
Component/s: ADO.NET Provider
Affects Version/s: 2.6.5
Fix Version/s: None

Environment: Windows 7 Ultimate, 3GB Ram. Firebird Embedded 2.5.0.26074.


 Description  « Hide
No exception is thrown either.

Sample code below.

  private void ValidateDB(string Database)
        {
            FbConnectionStringBuilder ConnectionString = new FbConnectionStringBuilder();
            ConnectionString.ServerType = FbServerType.Embedded;
            ConnectionString.Database = Database;
            ConnectionString.UserID = "sysdba";
            ConnectionString.Password = "dummypassword"; // this is required
            ConnectionString.Dialect = 3;
            
            try
            {
                FbValidation DBValidator = new FbValidation();
                DBValidator.ConnectionString = ConnectionString.ToString();
                DBValidator.Options = FbValidationFlags.SweepDatabase; // or any other FBValidationFlags.
                DBValidator.ServiceOutput += ServiceOutput;
                DBValidator.Execute();
            }
            catch (Exception e)
            {
                Log.FatalException("Unable to validate Database", e);
                Environment.Exit(0);
            }
           
        }

  private static void ServiceOutput(object sender, ServiceOutputEventArgs e) // never called
        {
           Log.Debug(e.Message);
        }


 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.