Tag: Migration

  • DBA Scripts: Get Database Inventory

    🔧Part of the DBA-Tools Project, copy/paste SQL Server scripts and health checks.Related pillar: Server & Configuration One Query, Every Database’s Migration Readiness Before you migrate, upgrade, or consolidate anything, you need one honest answer per database: is it actually online, what recovery model is it running, and is its compatibility level going to surprise you…

  • DBA Scripts: Generate Migration Scripts

    This post has been split into a pillar and five focused posts, each generator script now has its own page with its own real bugs, Example Output, and Related Scripts, rather than five topics crammed into one long post. Start at the hub: SQL Server Migration Script Generators All five scripts, the repo links, and…

  • DBA Scripts: Get Linked Servers

    🔧Part of the DBA-Tools Project, copy/paste SQL Server scripts and health checks.Related pillar: Server & Configuration Four Questions, One Topic: What’s Linked to This Server Linked servers are the kind of configuration that gets set up once, for one integration, and then forgotten until a migration or an incident forces someone to ask what’s actually…

  • DBA Scripts: Fix Orphaned Users

    🔧Part of the DBA-Tools Project, copy/paste SQL Server scripts and health checks.Related pillar: Security From Finding Orphaned Users to Actually Fixing Them Get Orphaned Users answers “do I have this problem”. This script answers the next question: “what do I actually run to fix it”. After a database restore onto a server where the matching…

  • DBA Scripts: Get Edition Feature Usage

    🔧Part of the DBA-Tools Project, copy/paste SQL Server scripts and health checks.Related pillar: Server & Configuration What Actually Breaks If You Downgrade This Instance Edition downgrades, Enterprise to Standard, Standard to Web, look simple until you discover a feature that only Enterprise supports has quietly been in use the whole time. TDE-encrypted databases won’t open…

  • DBA Scripts: SQL Server Migration Script Generators

    🔧Part of the DBA-Tools Project, copy/paste SQL Server scripts and health checks. Moving a SQL Server workload to a new instance means recreating five things by hand, unless you script them: logins (with the same SIDs, or every restored database ends up with orphaned users), SQL Agent jobs, database user and role mappings, linked servers,…

  • DBA Scripts: Generate Restore With Move Script

    🔧Part of the DBA-Tools Project, copy/paste SQL Server scripts and health checks.Related pillar: Migration & Deployment Generating RESTORE … WITH MOVE for a Migration With a Different Drive Layout Moving a SQL Server workload to a new instance where the target’s drive layout doesn’t match the source means every RESTORE DATABASE needs a WITH MOVE…

  • DBA Scripts: Generate Linked Server Script

    🔧Part of the DBA-Tools Project, copy/paste SQL Server scripts and health checks.Related pillar: Migration & Deployment Recreating Linked Servers and Login Mappings for a Migration Moving a SQL Server workload to a new instance means recreating every linked server and its login mappings, unless you script it. This script produces sp_addlinkedserver and sp_addlinkedsrvlogin DDL for…

  • DBA Scripts: Generate User Mapping Script

    🔧Part of the DBA-Tools Project, copy/paste SQL Server scripts and health checks.Related pillar: Migration & Deployment Recreating Database Users, Roles, and Role Memberships for a Migration Moving a SQL Server workload to a new instance means recreating every database user, custom role, and role membership, unless you script it. This script loops over every online,…

  • DBA Scripts: Generate Agent Job Script

    🔧Part of the DBA-Tools Project, copy/paste SQL Server scripts and health checks.Related pillar: Migration & Deployment Recreating Every SQL Agent Job for a Migration, in the Right Order Moving a SQL Server workload to a new instance means recreating every SQL Agent job, unless you script it, and getting the order wrong (steps before the…