This is potentially a noob question but I thought I would ask anyway. I am 
trying to connect to a nondefault database using denisenkom/go-mssqldb. I 
am able to connect to master using the code below but swapping the master 
database to a database that I created fails. I figured that I can do 
something like " 
select * from HospitalDb.dbo.Patient" but would like to be able to connect 
directly to HospitalDb using the connection string below. Any suggestion 
would be appreciated.


condb, errdb := sql.Open("mssql", "server=.\\Standard;user 
id=sa;password=prestige;encrypt=disable;database=master")

-- 
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.

Reply via email to