Article ID: 917825 - Last Review: February 6, 2009 - Revision: 7.0 How to use the Sqldumper.exe utility to generate a dump file in SQL Server 2005On This PageSUMMARYThe Sqldumper.exe utility is included with Microsoft SQL Server 2005. This article describes how to use the Sqldumper.exe utility to generate a dump file for Watson error reporting or for debugging tasks. MORE INFORMATIONYou can use the Sqldumper.exe utility to generate a dump file on demand for any Microsoft Windows application. For example, you can generate a dump file for debugging an application problem when a computer that is running SQL Server 2005 is not responding to user requests. A dump file can be a mini-dump file, a full dump file, or a filtered dump file. However, you cannot use the Sqldumper.exe utility for general purpose debugging. For more information about general purpose debugging, visit the following Microsoft Web site: http://www.microsoft.com/whdc/devtools/debugging/default.mspx
(http://www.microsoft.com/whdc/devtools/debugging/default.mspx)
The SQL Server process calls the Sqldumper.exe utility internally to generate a dump file when the process experiences any exceptions. SQL Server passes flags to the Sqldumper.exe utility. You can use trace flags to change the flags that SQL Server passes to the utility in the context of an exception or in the context an assertion. These trace flags are in the range from 2540 to 2559. You can use these trace flags to generate certain types of dump files.How to obtain a Microsoft Windows application process identifierTo generate a dump file by using the Sqldumper.exe utility, you must have the process identifier of the Windows application for which you want to generate a dump file. To obtain the process identifier, follow these steps:
How to run the Sqldumper.exe utilityRun the Sqldumper.exe utility under the context of the folder where SQL Server originally installed the utility. By default, the installation path of the Sqldumper.exe utility is as follows:SQLServerInstallDrive:\Program Files\Microsoft SQL Server\90\Shared\SQLDumper.exe Note SQLServerInstallDrive is a placeholder for the drive where you installed SQL Server 2005.To generate a dump file by using the Sqldumper.exe utility, follow these steps:
The dump file that the Sqldumper.exe utility generates has a file name pattern that resembles the following: SQLDmprxxxx.mdmp In this pattern, xxxx is an increasing number that is determined based on other files that have a similar file name in the same folder. If you already have files in the folder that have file names in the specified pattern, you may have to compare the date and the time that the file was created to identify the file that you want.Additional information and considerationsWhen the Sqldumper.exe utility generates a dump file for a Windows application, the dump file may be as large as the memory that the Windows application is currently using. Make sure that sufficient disk space is available on the drive to which the Sqldumper.exe utility is writing the dump file.You can specify the directory where you want the Sqldumper.exe utility to write the dump file. The directory must already exist before you run the Sqldumper.exe utility. Otherwise, the Sqldumper.exe utility will fail. Do not use a UNC path as a location for the dump file. The following is an example of how to specify the dump file location of the mini-dump file:
To run the Sqldumper.exe utility, you must log on to Windows by using one of the following methods:
If you notice that no dump file has been generated in the current folder after you run the Sqldumper.exe utility, review the information that the utility has generated at the command line to try to determine the possible cause of the failure. This information is also logged in the Sqldumper_errorlog.log file in current directory. The following are two possible error messages and their causes: Message 1 OpenProcess failed 0x57 - The parameter is incorrect Message 2 Invalid value for thread id - <invalid parameter>
Parameter error
If an error message that resembles the following is generated, you can safely ignore this message: Unknown callback type during minidump 6 Unknown callback type during minidump 7 Cluster failovers and the Sqldumper.exe utilityIn cluster failover scenarios, the SQL Server resource DLL now can obtain a dump file before the failover occurs. When the SQL Server resource DLL determines that a SQL Server resource has failed, the SQL Server resource DLL uses the Sqldumper.exe utility to obtain a dump file of the SQL Server process. To make sure that the Sqldumper.exe utility successfully generates the dump file, you must set the following three properties as prerequisites:
To set the Sqldumper.exe utility properties for cluster failover, follow these steps:
cluster resource "SQL Server" /priv
" To remove the Sqldumper.exe utility properties for cluster failover, follow these steps:
| Article Translations
|

Back to the top
