代码求解!
SQLEXEC( SQLCONNECT("Wizardpro","sa","Essilor1"),"select * into dba.res_mcqcres from zres2"),没有报错也没有新表在数据库中增加!!
分布走路
1,连接
nHandle = SQLCONNECT("Wizardpro","sa","Essilor1")
2,操作
SQLEXEC(nHandle,"select * into dba.res_mcqcres from zres2")
你上面的连接好像有问题,如果是MSSQL,这样连接
nHandle=sqlstringconnect("driver=sql server;server=192.168.2.101;uid=sa;pwd=123456;database=Wizardpro")
IF nHandle>0
messagebox("哈哈,成功连接MSSQL数据库了")
SQLEXEC(nHandle,"select * from 你表","Sql_table")
brow
SQLDISCONNECT(nhandle) &&断开连接
ENDIF
另外,select * into dba.res_mcqcres from zres2 在MSSQL中有问题,应该为
select * into dbo.res_mcqcres from zres2