470,632 Members | 2,706 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,632 developers. It's quick & easy.

GURUS - VB6 - stored procedures


I am trying to convert my old VB / SQL to now use MySQL.


I have installed the MySQL ODBC 3.51 driver


In a very simplistic way

cmd.ActiveConnection = gsDSN
cmd.CommandType = adCmdStoredProc
With cmd
.Parameters(1).Value = sVal1
.Parameters(2).Value = sVal2
End With

Now for the life I don't know why this doesn't work
B. DOES work

DIm sQuery as string

sQuery - I build my sql string here

so for example "call sMyProc('param1' , 'param2')

conn.Open gsDSN
conn.execute sQuery

Any ideas



Jan 11 '06 #1
0 980

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Kent Lewandowski | last post: by
5 posts views Thread by Tim Marshall | last post: by
45 posts views Thread by John | last post: by
1 post views Thread by Korara | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.