the type or namespace name 'Management' does not exist in the namespace 'MicrosoftSqlServer' are you missing an assembly reference
<p><strong>using Microsoft.SqlServer.Management.Smo;
Using Microsoft.SqlServer.Management.Common;</strong></p>

<p>I am using the above namespaces for restore database from c# window form, but the compiler tell me <strong>"the type or namespace name 'Management' does not exist in the namespace 'MicrosoftSqlServer' are you missing an assembly reference"</strong> </p>

<p>And i follow some advice from google,  found DLL in.... C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies</p>

<p>Microsoft.SqlServer.Smo.dll;</p>

<p>Microsoft.SqlServer.ConnectionInfo.dll</p>

<p>I got them now, and i copy them and paste them to all the location in my project, but i still have error message from compiler, could anyone where i can put the reference to ? Thanks</p>
