I'm not sure what your expertise is with SQL but I was a little lazy when I posted the other. Here are all the components if you need them.
LOCAL lnConn
LOCAL lnOutput
lnConn = SQLCONNECT('test')
IF m.lnConn > 0
SQLEXEC(lnConn, 'SELECT CURRENT_TIMESTAMP')
? Exp
USE
SQLDISCONNECT(m.lnConn)
endif
If you can't stand behind your troops, stand in front of them.
Semper Fidelis
Jim