This sample console application demonstrates how to display the objects in the SQL Namespace tree for the default instance of Microsoft® SQL Server™ 2000 running on the local computer.
C:\Program Files
\Microsoft SQL Server\80\Tools\Devtools\Samples\Sqlns\Cpp\Dumptree
Open the Microsoft Visual C++® workspace file, Dumptree.dsw, and then start the project.