How to create SQL file in one command on Windows


Have you ever wondered how to create a sQL file on one command. I found myself needing to create a SQL File in just one command on Windows.

1. Navigate to the Folder where you want to create the SQL File
2. In the File Explorer Search Bar, type:
     Powershell New-Item mySQLfileName.sql;code .

- This will create a SQL file and open it in Visual Studio Code.







© 2023 - ErnesTech - Privacy