Command Line Does Not Create Valid CHM

Documents SQL Server 2005 and 2008 databases.

Moderators: JonathanWatts, David Atkinson, Michelle Taylor

Command Line Does Not Create Valid CHM

Postby Janna.Kelly » Wed May 19, 2010 7:17 pm

I've created a sqldoc project using the UI and am now trying to use the command line version to run it from within my build script.

SQLDoc builds a 1KB CHM file that is not valid. If I generate from within the UI, I get an 87 KB CHM file that is valid and openable.

Here's the command line I'm using:

Code: Select all
"c:\\program files\\red gate\\sql doc2\\sqldoc" /project:MyDatabaseDocumentation.sqldoc /filetype:chm /out:MyDatabase.chm /force


Any ideas or solutions would be welcome.

Thank you!
Janna.Kelly
 
Posts: 2
Joined: Thu Sep 25, 2008 3:18 pm

Command Line Correction

Postby Janna.Kelly » Wed May 19, 2010 7:26 pm

Sorry, the command line above should have read:

Code: Select all
"c:\\program files\\red gate\\sql doc 2\\sqldoc" /project:MyDatabaseDocumentation.sqldoc /filetype:chm /out:MyDatabase.chm /force
Janna.Kelly
 
Posts: 2
Joined: Thu Sep 25, 2008 3:18 pm

Postby peter.peart » Fri May 21, 2010 12:53 pm

Hi Janna,

Many thanks for your post. I have replicated this here and have raised a bug for it in our internal tracking systems under reference SDOC-1424. Hopefully this will be fixed shortly for the cumultive patch, however I will post on here when the fix is made.

Pete
Peter Peart
Red Gate Software Ltd
+44 (0)870 160 0037 ext. 8569
1 866 RED GATE ext. 8569
peter.peart
Site Admin
 
Posts: 362
Joined: Tue Sep 02, 2008 9:58 am
Location: Top floor, RG towers with the cool kids

Postby peter.peart » Fri May 28, 2010 11:54 am

Hi Janna,

Looks like I made a mistake here and should have read the documentation properly myself!

Anyway, if you save a project where the output is set to CHM then you won't need to use the out switch. Your code will then look something like:

Code: Select all
"c:\\program files\\red gate\\sql doc 2\\sqldoc" /project:MyDatabaseDocumentation.sqldoc /force


HTH!

Pete
Peter Peart
Red Gate Software Ltd
+44 (0)870 160 0037 ext. 8569
1 866 RED GATE ext. 8569
peter.peart
Site Admin
 
Posts: 362
Joined: Tue Sep 02, 2008 9:58 am
Location: Top floor, RG towers with the cool kids


Return to SQL Doc 2

Who is online

Users browsing this forum: No registered users and 0 guests