Options

Bug in Database.SaveToDisk

jeffreydpjeffreydp Posts: 8
edited March 25, 2008 4:52AM in SQL Toolkit Previous Versions
There's a small bug in the SaveToDisk function.

If the password on the ConnectionProperties of the Database object is set to null, the SaveToDisk method fails with the following exception:

String reference not set to an instance of a String.
Parameter name: s

Comments

  • Options
    Brian DonahueBrian Donahue Posts: 6,590 Bronze 1
    Hi Jeffrey,

    Thanks for pointing this out. As a workaround, have you tried setting the password to String.Empty? That normally stops null-reference exceptions on strings that you don't want to specify a value for, in my experience.
  • Options
    Hi Brian,

    Thanks for mentioning the workaround, I should have done so in my initial post.
Sign In or Register to comment.