PowerShell
PowerShell copied to clipboard
Powershell scripts for SQL Server database administration
Fixed issue where default instance failed as the name would be truncated after the first character. Once this was done the code properly updates the startup parameters. Here is the...
I changed line 28 in PowerShell/SQLUtility/SQLUtility/Copy-SQLLogins.psm1 from `$filename = $source.Replace('/','_') + '_' + (Get-Date -Format 'yyyyMMddHHmm') + '_logins.sql'` to `$filename = $source.Replace('/','_').Replace('\', '_') + '_' + (Get-Date -Format 'yyyyMMddHHmm') +...
Add switch parameter to allow for checking subdirectories for backups.
Add ability to grab current LSN value for database in recovery and use that as starting point.
Allow Sync-DBUsers to accept a location for an sp_help_revlogin script (http://support.microsoft.com/kb/918992) and be able to extract valid login creation from that script to correct orphans.
New-Restore should support the possibility that fulls and diffs can be striped.