' In order to restore, we need to clear the connection pool System.Data.SqlClient.SqlConnection.ClearAllPools() oStatus.Text = lcRestoringDatabase + "..." loRestore.Devices.AddDevice(cPath + "\" + cDatabase + ".bak", Microsoft.SqlServer.Management.Smo.DeviceType.File) loRestore.Database = cDatabase loRestore.Action = Microsoft.SqlServer.Management.Smo.RestoreActionType.Database loRestore.ReplaceDatabase = True loRestore.PercentCompleteNotification = 1 AddHandler loRestore.PercentComplete, AddressOf ProgressEventHandler2 loRestore.SqlRestore(loServer)And, I still cannot get exclusive use of the database.