Quantcast
Channel: LoadRunner Practitioners Forum topics
Viewing all articles
Browse latest Browse all 3978

run sql queries on sql server and get the column names of the query result

$
0
0

Hello,

 

I need to make some sql queries in a LR script in order to check the values in front of internal data.

In addition, I need to get the column names of the result, which is not necessarily the names of the original tables in the database, because there are sometimse aliases in our requests.

 

For that purpose, I used the lr_db set of fonctions whi work pretty well, but the problem is that I don't get the column names in the result.

 

The function lr_db_getvalue requires the name of the column in input, and I don't have it.

I tested the function ld_db_dataset_action with the print option, and it gives the column names of the result. But the problem is that it is only possible to print it in the log files, and not to store the result in a local variable.

I don't have the possibility to parse the logs, so I am looking for another option.

 

So my question is:

 

How can I get the column names of a sql query result with load runner?

If not possible, is there a library that you recommend that I could use for that purpose?

The database is SQL SERVER

 

Thanks in advance,

 

Gilles

 

 


Viewing all articles
Browse latest Browse all 3978

Trending Articles