title: How do I use Powershell to detach a SQL Server database?
body: <p>I am sure that this can be achieved by loading the <a href="http://msdn.microsoft.com/en-us/library/ms162169.aspx" rel="nofollow noreferrer">SQL Server Management Objects</a> assemblies but I am curious as to whether the 'Start Powershell' item in the context menu within SQL Server Management Studio 2008 will give me a headstart.</p>