you have to establish a OLE DB or ODBC connection to your SQL database. That´s a job your system or database administrator can help.
Is the connection established open QV script choose connect and a connect string will be placed in your script. Than chosse "select" and look for the tables an fields you need. And be sure that you know what are the right key fields toconnect to your old data.