This tutorial series shows how to interact with the SQL Server from Go (or Golang) using the official Microsoft SQL Server Driver for Go.
Section 1. Getting Started
- Connecting to the SQL Server from Go – Show you how to connect to an SQL Server database from a Go program.
Section 2. Inserting Data
- Inserting data into a table – Insert a new row into a table and return the inserted ID from a Go program.
- Inserting multiple rows into a table – Insert multiple rows from a Go program using a multi-insert statement.
Section 3. Querying Data
- Select data from a table – Select one or more rows from a table in a Go program.
- Pagination – Paginate rows by breaking up a large result set into smaller ones.
Section 4. Updating Data
- Update data from a table – Update data in a table from a Go program.
Section 5. Deleting Data
- Delete data from a table – Delete data from a table in SQL Server from Go.
Section 6. Performing Transactions
- Perform a transaction – Perform an SQL Server transaction from Go.
Section 7. Calling Stored Procedures
- Call a stored procedure – Call a stored procedure in SQL Server from Go.
- Call a stored procedure with OUTPUT parameters – Call a stored procedure with OUTPUT parameters from Go.
Was this tutorial helpful?