This is where I stored most of my SQL related projects/codes, along with my setups for this topic.
- Installation:
- Docker
- Azure Data Studio (retired)
- Visual Studio Code (VSCode):
- mssql extension
- Installation:
- SQL Server Management Studio 22 by Microsoft
- Visual Studio Code (VSCode)
Displaying all databases on the server you're connecting to.
SELECT name FROM sys.databases ORDER BY name
Since I'm using MacOS, there are hidden files, .DS_Store, created by default to store information about the folder, such as its icon, position, and other metadata. These files are specific to macOS and are not necessary for other operating systems. Generally, it's not recommended to commit .DS_Store files to GitHub.
- cd to the root of the repository.
touch .gitignore
- Opening the
.gitignorefile.
nano .gitignore
- Adding the
.DS_Storerule to the file.
.DS_Store
The exact way to save the file depends on your text editor. In nano, you would pressCtrl+X, thenY, and thenEnter. - Commit to the Git.
git add .gitignore
git commit -m "Created a `.gitinore` file to ignore `.DS_Store` files"
- Sync the changes up-to-date with the remote repository.
git fetch origin
git merge origin/main