FAQs - ApexSQL Doc
General
|
I have a lot of empty sections such as "No Extended Properties Exist", "Statistics" and "“Check Constraints". If a section has no data can I hide it to reclaim this space?
|
In the Treeview go to the Optional Items item under Options step. Un-check the "Show Sections with no Relevant Meta Data to Document" option in the "Miscellaneous" group.
|
What kinds of output can ApexSQL Doc produce?
|
ApexSQL Doc is capable to create documentation in 3 different output formats:
- CHM format (Compiled Help File Format)
- Plain HTML
- HXS (Help 2 Compiled Help File). This is the help file format of the SQL
Server 2005 Books Online and Visual Studio 2005.
|
We want to see our company name and some other custom text on each page of the documentation. How can we do this?
|
Yes, in the Treeview go to the Custom Text step of the Wizard under the Options node. There you find 2 text-boxes, in which you can enter your custom text to be displayed on top and at the bottom of every single page of the documentation. Standard HTML tags are accepted along with several predefined tags such as {servername} or {databasename}.
|
Can I document more than one database in the same .chm file?
|
Yes, you can. Select the Database Selection item in the Data Sources step and simply check all required databases from the list.
|
The file name of my final output always defaults to ServerName.DatabaseName – where can I change this setting?
|
The file name as well as the documentation title is built using the special predefined tags such as {servername}, {databasename} and {date} along with the fixed text. Just select the Naming page in the Treeview under the Output node and make the appropriate changes there. You can set up the file name and the overall title inside of the documentation itself exactly the same way.
|
How do I change the copyright text and link at the bottom of documentation?
|
Select Copyright node under Output node in Treeview and type in there the values you wish to be displayed.
|
Can I organize and group objects only by object type or are there additional options?
|
Yes, you can group the objects of your database by different criteria additionally to their object types. Just select the Database Options item in the Treeview under Database Information node. In the right panel you will find a "TOC Options" section where you can specify groupings by Filegroup, Owner and/or Partition Scheme. Note that several groupings can be made at once.
|
Can ApexSQL Doc document system tables and other objects?
|
Yes. Go to Performance Intensive Options and under "Database Options" section check Include System Objects.
|
I want to include the graphical dependencies among my database objects in the documentation. How can I do this?
|
On the Dependency Options page under the Database Information node make sure the "Graphical Dependencies" checkbox is checked. If it is checked you can customize how the output of the graphical dependencies in the documentation should look like.
|
I want to be able to make additional edits to the chm file generated by ApexSQL Doc – is this possible?
|
Yes – by ensuring that the 'Delete Chm Intermediary Files...' option found in the General tab of ApexSQL Doc's Options form is turned off (it's turned on by default initially), the various CHM project files and the associated HTML content files will be saved in a subfolder off of the 'Intermediary' folder found in ApexSQL Doc's main installation folder. From there, changes can be made to the individual content pages at will. Once the edits are complete, simply compile the .chm file manually by using the MS Help File Complier app – named 'hhc.exe' – found in the ApexSQL Doc main application folder. This must be run via a command line, and takes an argument of a valid help compiler project file, which will have an extension of '.hhp'. One of these will already exist in the subfolder off of the 'Intermediary' for your particular documentation. This will complete the compilation of the CHM file with the user's edits in place.
|
I have a server where the number of databases changes – sometimes some are added and removed. I want to automate the ApexSQL Doc process via the command line – is there a way to have the app document *all* databases on a server without naming them explicitly? Can I have the app exclude certain databases from a "global" server documentation? |
Yes to both. On the Database Selection page of the application wizard, the database selection can be controlled two ways. In the first, simply explicitly select the databases for documentation by selecting the 'Document Only Checked Databases' selection. By using the other option, 'Document All Databases Except Checked', the user can select to universally document all databases present on a server (by leaving all databases unselected), or can opt to document all databases except for certain ones selected.
|
Does ApexSQL Doc allow me to use another stylesheet for documenting?
|
Yes. Go to Formatting page under the Output step of the wizard, and you can choose the predefined style of the document output such as VS2005 and a standard ApexSQL Doc stylesheet or you can specify the stylesheet file name for the output help file.
|
What is Server Detail option page?
|
In the Server Detail step you can choose if you want to document server properties. Server properties contain information about your server's configuration.
|
How can I exclude information about the Server?
|
You can uncheck Server Properties under 'Server Details' page and also uncheck all server objects from 'Server Object Filter' page.
|
How can I highlight SQL Syntax of my objects in the documentation?
|
Go to Database Options page under the 'Database Information' step of the wizard, and check the 'Transact-SQL Syntax Highlight' option. By checking this ApexSQL Doc colors key SQL words in the code block section.
|
After compiling the help file the right side of the help screen will not display. I see "This program cannot display the webpage" message. What am I doing wrong?
|
This is a windows "security" feature. You will have to right click on the .chm, click Properties and click Unlock option. This will unblock the help file and will display it as usual.
|
I generated a new database doc file and I can open it on my workstation’s drive. When I copy it to the network drive it gives me "This program cannot display the webpage" message. How can I fix this trouble?
|
Please try the way described here: http://support.microsoft.com/kb/892675/. Copied
from this url:
Example 1: Use the UrlAllowList
entry to enable specific URLs
Warning
Include only URLs for sites that you trust.
The .reg file in this example re-enables
hosting of the HTML Help ActiveX control in the following remote content:
Paste the following text in a text editor
such as Notepad. Then, save the file by using the .reg file name extension.
REGEDIT4 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\HTMLHelp]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\HTMLHelp\1.x\HHRestrictions] "UrlAllowList"="\\\\productmanuals\\helpfiles;http://www.wingtiptoys.com/help/"
You cannot use wildcard characters in the
URL string of any site that is added to the UrlAllowList registry key.
For example, you cannot use the following URL string:
"UrlAllowList"="http://*.wingtiptoys.com"
However, you can use the following URL string:
"UrlAllowList"="http://help.wingtiptoys.com"
This string lets the following sites host
the HTML Help ActiveX control:
|
Does ApexSQL Doc document object-level permissions?
|
Yes, ApexSQL Doc generates section 'Permissions' with appropriate permissions per user or role.
|
Is ApexSQL Doc able to document databases for SQL users that aren't database owners?
|
No, ApexSQL Doc is not be able do document database if your user is not member of the following role: DB_OWNER.
|
Does ApexSQL Doc document extended stored procedures?
|
ApexSQL Doc does not support documenting of extended stored procedures.
|
Can I see encrypted database objects?
|
ApexSQL Doc decrypts an encrypted user-defined function, stored procedure, trigger, or view if you are documenting a SQL Server 2000 database and you have system administrator permissions. However, ApexSQL Doc cannot decrypt views, stored procedures, functions, DML triggers, and DDL triggers that are encrypted in a SQL Server 2005 database. Therefore, ApexSQL Doc cannot document the creation SQL for encrypted objects.
|
Can ApexSQL Doc document all of the properties for a symmetric key?
|
ApexSQL Doc does not support work with certificates, symmetric keys, and asymmetric keys.
|
I have more than one numbered stored procedures. Can ApexSQL Doc document them all?
|
No, ApexSQL Doc documents numbered stored procedures as one.
|
Does ApexSQL Doc store what account is running SQL agent and SQL server?
|
No, ApexSQL Doc doesn't monitor what account is running SQL agent or SQL server.
|
Is it possible to document the membership of the Fixed Server roles in the ApexSQL Doc?
|
No, ApexSQL Doc does not allow documenting the Server Roles. But this possibility is added to the upcoming release.
|
Is it possible to document stored procedures that have been created for replication?
|
No, ApexSQL Doc doesn't support documenting of the stored procedures for replication.
|
Can ApexSQL Doc document dependencies based on external applications calls?
|
ApexSQL Doc cannot parse and document calls to database objects from external applications.
|
How to document cross-database dependencies?
|
ApexSQL Doc doesn't document cross-database dependencies by default if referred database is not included into documenting process. To document such dependencies all dependent database should be included to documenting as well.

Software Configuration
|
What versions of SQL Server can ApexSQL Doc document databases for?
|
ApexSQL Doc supports SQL Server versions 7.0, 2000, and 2005.
|
Can I manually edit the Project file?
|
Yes. ApexSQL Doc project is an XML file that can be manually edited.
|
Can I move the project file to another computer?
|
Yes, just make sure not to use Stored Encrypted Password in SQL Server Authentication.
Performance
|
What are some settings I can check/uncheck to allow Documentation to be created faster?
|
For documenting large databases, the documentation process can be fairly time-intensive. There are a few options that can be disabled to improve the overall documentation time. Most of them are in the Optional Items (Performance Intensive) option group on Optional Items page under Options node of the Wizard:
- Disable the 'Dependencies' option.
- Disable the 'Graphical Dependencies' option. (Combining this step with the removal of all Dependencies options as described in step 1 will prevent any dependency parsing from occurring during the documentation operation.)
- Disable the 'Transact-SQL Syntax Highlight' option.
- Disable the 'Statistical Data Analysis' option.
|
Can ApexSQL Doc handle very large Database?
|
Yes. ApexSQL Doc has been designed to work with the very large commercial databases.
Extended Properties
|
I wish to include the Extended Properties in my database in my documentation. Is this possible?
|
Yes. You will need to make sure the 'Include Extended Properties' option on the Optional Items step in the wizard is turned on. Additionally, on the Extended Properties step under the Options node you'll want to specify the Main Extended Property name to use in the documentation. The default Extended Properties to use are those stored under the label 'MS_Description', and any valid Extended Property label can be entered here.
|
How do I edit Extended Properties?
|
HTML 2.0 Documentation
|
I want to view my generated HTML Help 2.0 documentation but Windows doesn't open HxS file. How can I handle this?
|
- Register your documentation using Microsoft Help 2.0 SDK.
- Set up dexplore utility for viewing of the documentation.
|
Can I compile my own HTML project if I later decide I want it in CHM (Help 2) or I want to edit the intermediary files? If so, how can I do this?
|
Yes, you can. To compile your HTML project to CHM format you need to run following command:
%ApexSQL Doc path%\hhc.exe %HTML files path%\apexdoc.hhp
Where %ApexSQL Doc path% is an installation folder of ApexSQL Doc and %HTML files path% is a directory with the HTML files to be compiled.
To compile your HTML project to Help2 format you need to run following command:
%Help 2.0 SDK path%\hxcomp.exe" -p %HTML files path%\apexdoc.HxC
Where %Help 2.0 SDK path% is a folder of Help 2.0 SDK and %HTML files path% is a directory with the HTML files to be compiled.
|
What should I install on my machine to be able creating documentation in HTML Help 2.0 format?
|
For viewing the files of HxS format you should have 'Visual Studio .NET Help Integration Kit 2003' installed. You may download it from here. This Microsoft product requires Visual Studio 2003 installation. VSHIK installation process description you may find consulting HTML_2.0_running section of help, Installation sub-section.
|
How do I open a .hxs file?
|
ApexSQL Doc installation folder contains the Examples folder where there are 2 command files: reg.bat and view.bat in the HxS subfolder. The View.bat batch file contains an example of how to start viewing the generated documentation:
"C:\Program Files\Common Files\Microsoft Shared\Help\dexplore.exe" /helpcol ms-help://testDoc1/testDoc2
Where "C:\Program Files\Common Files\Microsoft Shared\Help" is a path to dexplore utility, testDoc1 is a help file Namespace and testDoc2 is a help file TitleID.
|
How can I view my Help 2 project generated from command line mode? Should I register a namespace and a help file before viewing?
|
Your project has been already registered after generation by ApexSQL Doc. You should simply run the following command:
"C:\Program Files\Common Files\Microsoft Shared\Help\dexplore.exe" /helpcol ms-help://Namespace/TitleID
Where Namespace is your help file namespace and TitleID is a title identifier of your help file.
Import/Export
|
I have object selections already set in a project file that I wish to import into a new project file. How do I do this?
|
If you have finished an object selection (probably even with some filters applied) that you wish to use for other documentation project, you can easily export these settings to an XML file on your file system. Just click the Export button on the Object Filter page to save the settings to a file.
Then open the new project and import the saved *.xml file clicking the Import button on the same Object Filter page – it will overwrite any existing object selections with objects from the imported profile.
Command Line Interface
|
How do I get the bitwise value that determines the object types I want to script via Command Line Interface?
|
On the Object Types page you will notice the "Bitwise Set" textbox on the right side. This will display the calculated value you need to use in your Command Line Interface script to document the current selection of object types.
|
Where can I obtain an object selection profile for Command Line Mode?
|
See Import/Export section in our FAQ on how to Export a selection profile. The exported profile can be passed directly to the Command Line Interface via the /includes switch.
|
How can I document several databases in CLI mode?
|
The current ApexSQL Doc version allows you to specify several databases at once in the /d switch. For example, to document the following four databases a1, a2, a3 and a4, at once, the command will be:
/s:CL /d:a1 a2 a3 a4
You can also use the exclude databases /ed switch, and an example will be:
/s:CL /d:northwind testdoc /ed
where the northwind and testdoc databases will be excluded from documenting. All existent databases except the specified ones will be documented.