* Change YOURSQLSERVERDB to the actual name of the DB * Cange YOURSQLSERVERNAME to the actual name of the SQL Server * Chaneg MyDBUser to the user name & MyDbPass to the password assosiated to that user sqlH = SQLSTRINGCONNECT("DRIVER=SQL Server;UID=MyDBUser;PWD=MyDbPass;DATABASE=YOURSQLSERVERDB;WSID=VLADO;APP=MyApplication;SERVER=YOURSQLSERVERNAME") IF sqlH < 0 MessageBox("Can not establish a connection") RETURN ENDIF sqlResult = SQLEXEC(sqlH, "SELECT * FROM MyTable", "MyLocalCursor") IF sqlResult < 0 MessageBox("Can not select a reords") SQLDISCONNECT(sqlH) RETURN ENDIF ****