if err != nil {
log.Println("Error opening the MSSQL database connection: " + err.Error())
return err
}
defer fldb.Close()
rows, err := fldb.Query(queryString)
if !rows.Next() { (then I scan and deal with the data from the twenty rows before returning)It all works, but I must be doing something wrong because one of my coworkers noticed that we had this enormous number of processes showing in the activity monitor of the SQL Server Management Studio. Further investigation shows that it creates a new process for every page, and never shuts it down. What am I missing?
--
You received this message because you are subscribed to the Google Groups "golang-sql" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-sql+...@googlegroups.com.
To post to this group, send email to golan...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-sql/4da04f9d-735f-6640-4813-b2eb7ff814db%40ormandy.com.
For more options, visit https://groups.google.com/d/optout.