>sqlexec(gnconnhandle, "select * from myDB..myTable","myCursor") >>
lnHandle1=SQLStringConnect('DRIVER=SQL Server;'+; SERVER=servername;Integrated Security=SSPI') lnHandle2=SQLStringConnect('DRIVER=SQL Server;'+; SERVER=servername;Integrated Security=SSPI;Database=Northwind;') * We have 2 connection - one w/o a database set SQLExec(lnHandle2,'select * from customers') SQLExec(lnHandle2,'select * from dbo.customers') SQLExec(lnHandle2,'select * from northwind.dbo.customers') * Are equal calls SQLExec(lnHandle1,'select * from customers') && Fail with error SQLExec(lnHandle2,'select * from northwind.dbo.customers') && Works SQLExec('use Northwind') && Set database SQLExec(lnHandle1,'select * from customers') && Works SQLDisconnect(lnHandle1) SQLDisconnect(lnHandle2)"Do you know the difference or advantage for using sqlexec() compared to using a select SQL command?"