Thanks for the post and your trial of WebUI Test Studio. You many not need to write code in order to access a data base in that you can try using WebUI's data driven feature.
From the description of the scenario you are trying to test, you can try using a verification test step, as described in the Quick Start
under 'Adding Quick Verification Steps' and 'Creating Advanced Test Verifications', then data drive that step, as described in 'Creating a Data Driven Test'.
We strongly recommend this approach as it would make test maintenance much easier. However, if you're still interested in writing custom SQL queries, we cannot help with the queries, but you can still do all of that I mentioned above, then customize the verification step as described under 'Customizing Your Test Using C# or VB.NET Code'.
Please let us know if you have any questions on this.
All the best,
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking
system and vote to affect the priority of the items