Example #1
0
func init() {
	dbConn, err := mssql.NewConn("localhost", "ITSM_social", "", "")
	if err != nil {
		println("mssql.NewConn failed %v", err)
	}
	_ = dbConn
}
Example #2
0
func main() {
	flag.Parse() //   SetupDB()

	dbConn, err := mssql.NewConn(*mssrv, *msdb, *msuser, *mspass)

	if dbConn == nil || err != nil {
		log.Fatal(err)
	}
	if log.V(2) {
		log.Infof("DOP %d", *dop)
		log.Flush()
	}
	migTables(dbConn, *dop)
	log.Flush()
}