Red Gate forums :: View topic - Generating SQL script fails
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Packager 6
SQL Packager 6 forum

Generating SQL script fails

Search in SQL Packager 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
hrosen50



Joined: 02 Nov 2009
Posts: 1

PostPosted: Mon Nov 02, 2009 10:24 pm    Post subject: Generating SQL script fails Reply with quote

With the message: Value cannot be Null. Parameter name: format

We've been using the Packager without problems until now. Any suggestions?

Thanks,
Hal
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6577

PostPosted: Wed Nov 04, 2009 3:12 pm    Post subject: Reply with quote

Hi Hal,

I've seen this error a few times lately, but we haven't got a one-shot-wonder for fixing it because it's a data-driven error. Basically there is a LOB like a text or image field and the data can't be retrieved for it.

The background is that this is a generic error thrown by the Microsoft .NET SqlDataReader when it is reading a row of data and trying to cast it as a .NET datatype.

If you can work out which table this is happening on, maybe it would be a good idea to run DBCC CHECKTABLE on it and see if there are any errors.
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6577

PostPosted: Tue Nov 10, 2009 2:46 pm    Post subject: Reply with quote

Hi Hal,

Just to clarify, the suggested cause of the fault that I had proposed deals strictly with this error happening during the generation of a SQL script. If this happens when you're actually executing a SQL Packager Package, the same error message is shown when trying to get the default data and log locations and adding the user running the package to the dbcreator server role will fix it.
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