lnHandle = sqlconnect(your dsn name) ?sqlexec(lnHandle,"Select * from table","cursor_name")>Using VFP 6.0 SP2. I want to read IBM DB2 data bases that reside on the Mainframe from within FoxPro. I have read the mainframe data bases in access, but it was awhile ago and I do not remember. Think I used IBM DB2 (or DB2 Connect) to establish the link on the PC and then linked to them from within Access. Is something similar available in FoxPro?