Closed proudlily closed 7 years ago
i saved this problem
str := `Exec QPAccountsDB.dbo.GO_EfficacyAccounts ?,?,?,?,?,?`
stmr, err := s.DBGT.Db.Prepare(str)
if err != nil {
fmt.Println("Prepare", err)
return
}
_, err = stmr.Exec(1000003, "moon far away", "11", 1, 2, 3)
if err != nil {
fmt.Println("exec :", err)
return
}
fmt.Println("success")
Here https://github.com/alexbrainman/odbc/blob/master/mssql_test.go#L1364-L1394 is another example of calling MS SQL Server stored procedure from go.
Alex
thx @alexbrainman
i have connected the sql server seccessful,but when i tired to save the stored procedure ,i got failed
my code is below:
and the err is below:
the sql server code is :
what case the reason to the result?did i write the wrong code? please help me out
thx