Red Gate forums :: View topic - Bug in Database.SaveToDisk
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Toolkit Previous Versions
SQL Toolkit Previous Versions forum

Bug in Database.SaveToDisk

Search in SQL Toolkit Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
jeffreydp



Joined: 11 Mar 2008
Posts: 5

PostPosted: Thu Mar 20, 2008 12:16 pm    Post subject: Bug in Database.SaveToDisk Reply with quote

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
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6669

PostPosted: Fri Mar 21, 2008 8:00 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
jeffreydp



Joined: 11 Mar 2008
Posts: 5

PostPosted: Tue Mar 25, 2008 9:52 am    Post subject: Reply with quote

Hi Brian,

Thanks for mentioning the workaround, I should have done so in my initial post.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group