Skip to content

Instantly share code, notes, and snippets.

View MohamedSahbi's full-sized avatar
🎳
Having fun at work

Mohamed Sahbi MohamedSahbi

🎳
Having fun at work
View GitHub Profile
@MohamedSahbi
MohamedSahbi / tsql-cheatsheet.md
Last active December 20, 2023 01:11
A cheat sheet for T-SQL database administration

T-SQL Database Administration Cheat Sheet

Credits

I collected these commands mainly from Microsoft Documentation. Credits goes to Microsofts Docs unless credits are stated under the code snippet.

Commands

Select Login

SELECT * FROM sys.sql_logins WHERE name = 'myapp';

FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?