Can we link SQL queries to our web automation run?

Hi,

As part of Automation Testing, we need to validate the data. So once the webautomation is run through macro, can we link our SQL query to it for data verification?

Yes. I see two options: