title: How to import csv and save in MSSQL database using golang?
body: <p>This is my code. Currently, I just read the contents of the CSV file. I need to migrate this CSV file to MSSQL using Go Language Application</p>
  
  <pre><code>package main
  
  import (
      "encoding/csv"
      "log"
      "os"
  )
  
  func main() {
      rows := readOrders("Ec2Instances.csv")
  }
  
  func readOrders(name string) [][]string {
      f, err := os.Open(name)
      if err != nil {
          log.Fatalf("Cannot open '%s': %s\n", name, err.Error())
      }
      defer f.Close()
      r := csv.NewReader(f)
      r.Comma = ';'
      rows, err := r.ReadAll()
      if err != nil {
          log.Fatalln("Cannot read CSV data:", err.Error())
      }
      return rows
  }
  </code></pre>
  
  <p>I want the CSV file to be written specifically into the "MSSQL Database". I have installed MSSQL and SSMS Softwares. How do I access these and write data into it?</p>