This sample Microsoft® Visual C++® application demonstrates how to use SQL-NS to display the Properties dialog box for the pubs database.
C:\Program Files\Microsoft SQL Server\80\Tools\Devtools\Samples\Sqlns\Cpp\Dbprop
Open the Microsoft Visual C++ workspace file, Dbprop.dsw, and then start the project.