Here is the sample from
www.foxclub.ruLparameters m.host, m.db, m.user, m.pass
m.host=Iif(Empty(m.host),"localhost",m.host)
m.db=iif(empty(m.db),'',m.db)
m.user=iif(empty(m.user),'',m.user)
m.pass=iif(empty(m.pass),'',m.pass)
SqlSetProp(0,"DispLogin",3)
SqlSetProp(0,"DispWarnings",.F.)
Return SQLStringConnect(;
"DRIVER=MYSQL3"+;
";SERVER="+m.Host+;
";DB="+m.DB+;
";OPTION=25"+;
";UID="+m.User+;
";PWD="+m.Pass ;
)
MVP-2006-2011, PHD in Math and Physics ,
host of
www.foxclub.ru,
VFP lector at Interface and Microinform companies
Head science researcher of VNIIA Rosatom.