VFP怎样连接SQL2008?
哪位老师能指点一下VFP怎样连接SQL2008?
请老师帮我看一下这段代码有问题吗?
public con
wait '连接到SQL Server 上去'nowait noclear window
sqlsetprop (0 ,"DispLogin",3)
con=sqlstringconnect("driver=SQL server;Server=192.168.1.179;Uid=sa;Pwd=gt2010GT2010;database=sczk")
wait clear
IF con<=0
thisform.label7.Caption='连接失败!'
ELSE
thisform.label7.Caption='连接成功!'
ENDIF