I assume from your subject line that you want to connect specifically to MS SQL, rather than some other flavor of SQL. I do not connect to Access, so I cannot help there.
A generic interface for SQL-like databases is included in the basic Go packages. I assume that you have read this page: https://golang.org/pkg/database/sql/#pkg-subdirectories In order for this package to actually be useful, you have to install a driver for the specific database system you want to use. For MS SQL I like github.com/denisenkom/go-mssqldb, because it is pure Go (unlike some of the other options) and it works well. Once you "go get github.com/denisenkom/go-mssqldb", you should have everything you need. There are examples in the examples/ directory, and README.md gives you all of the information you would need about your connection string to open your connection to the database. Good luck! On Thursday, June 15, 2017 at 7:57:56 AM UTC-4, Vikram Rawat wrote: > > I have read like every blog about database but I am not able to understand > how to connect GOLANG to > > 1. SQL Server > 2. MS Access > > can anybody please tell me how to query these databases please > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.