This sample Microsoft® Visual Basic® 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\Vb\Dbprop
Open the Microsoft Visual Basic project file, Dbprop.vbp, and then start the project.