Forum Discussion

mplunkett's avatar
13 years ago

Using SQL as a variable

PO                 TAG

1000               5050

1001               7070

1002               9090





I have the above info in my SQL server table called Test.

I have a spreadsheet which gives me the value (1001) for my current PO number.  I want to be able to look in my SQL table and find the Tag number associated with PO 1001 and get back 7070 and store that as a new Variable.



Anybody know of a way to do this?
  • sastowe's avatar
    sastowe
    Super Contributor
    If I understand your question correctly, you will be able to use ADO (Active Data Objects) to access your SQL Server table. Google ADO for information. This is not a Test Complete or Smart Bear technology but Active X tech by Microsoft. Look ath teh connection object and the recordset object.