Yet, developers, trainers, and data analysts frequently search for the holy grail: They envision a USB stick containing a database engine that can run on any machine without admin rights, leaving no trace behind.
E:\SQL2019_Setup.exe /Q /ACTION=Install /FEATURES=SQLENGINE /INSTANCENAME=SQLEXPRESS /SQLSVCACCOUNT="NT AUTHORITY\NETWORK SERVICE" /AGTSVCACCOUNT="NT AUTHORITY\NETWORK SERVICE" /SQLSYSADMINACCOUNTS="BUILTIN\ADMINISTRATORS" /INSTANCEDIR="E:\SQLExpress" /SQLUSERDBDIR="E:\SQLExpress\Data" /SQLUSERDBLOGDIR="E:\SQLExpress\Logs" /TCPENABLED=1 /BROWSERSVCSTARTUPTYPE="Automatic" /IACCEPTSQLSERVERLICENSETERMS This forces all binaries, system databases, user databases, and logs onto the USB drive. Save the following PowerShell script as StartSQL.ps1 on the root of the USB drive. ms sql server express portable
Introduction: The Portable Paradox In the world of enterprise software, "portability" is often a dirty word. Applications are expected to hook into registries, spawn Windows services, and embed themselves deeply into the operating system. Microsoft SQL Server Express—the free, entry-level version of the world’s most popular enterprise RDBMS—is the epitome of this "installed" philosophy. Introduction: The Portable Paradox In the world of