Skip to content

Instantly share code, notes, and snippets.

View adrianhideki's full-sized avatar
Working from home

Adrian Hideki adrianhideki

Working from home
View GitHub Profile

Handling errors and transactions

With T-SQL like any programming language we can handle erros making use of TRY and CATCH blocks, the basic structure is:

BEGIN TRY
  /* some code here */
END TRY
BEGIN CATCH
/* error handling */
@adrianhideki
adrianhideki / install_docker_wsl2_windows.md
Last active February 7, 2023 15:11
Install Docker on WSL2 Windows

Install docker on WSL2

Requisites

  • powershell
  • windows 10 version 2004 and higher (Build 19041 and higher) or Windows 11 (If you are on earlier versions please see the manual install page)

Install WSL2

Run with administrator mode: