Right click on project>>Add reference>>click browse button find the below path C:\Program Files\Microsoft SQL Server\90\SDK\Assemblies Microsoft.SqlServer.Smo.dll add the reference
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)