How to get the column count and column name from the
resultset in the database connection program?
Answers were Sorted based on User's Feedback
Answer / ram
you use following sql query
select column name, count(column name)from table name.
| Is This Answer Correct ? | 3 Yes | 3 No |
Answer / tvsrkc
we can get the column count by following code
------------------------------------------------
set colcoll=rs.fields
colcnt=colcoll.count
for i=0 to colcnt-1
msgbox rs.fields(i).name
rs.movenext
next
| Is This Answer Correct ? | 2 Yes | 2 No |
Answer / mahesh
select count(column name) column name from the table.
| Is This Answer Correct ? | 1 Yes | 2 No |
Answer / nageshbijoor@gmail.com
you can get column count using following code
totalrec = 0
DataTable datatable
datatable = ds.Tables["tablename"]
totalrec = datatable.Rows.Count
Label1.Text = datatable.Rows[currrec]["columnname"].ToString
()
| Is This Answer Correct ? | 3 Yes | 4 No |
Answer / krishnat.qa
we can get the column count by following code
-----------------------------------------------------
set colcoll=rs.fields
colcnt=colcoll.count
for i=0 to colcnt-1
msgbox rs.fields(i).name
rs.movenext
next
| Is This Answer Correct ? | 1 Yes | 3 No |
HOW TO DO THE BATCH TESTING USING QTP?
How do u write a regular expression for date (dd/mm/yyyy) field?
In where you are keeping or maintaining shared object repository (file)in your appliction?
For what purpose to we use object repository in a application?also explain usage of obj.repository?
Tell me the QTP Advantages and Disadvatages ?
write a script to validate the content in the web application. (do it by OR method) and (do it by Descriptive method by creating a description object..
how to know no.of mails in our g mail by using vb-script
With help of object repository,we can able to write the descriptive program manually?
If there are 100 checkboes in a page then how can we select all chexkboxes at once through descriptive programing in QTP using vb script. Please send the answers...
What are the framework folders?
On what document base Descriptive programming is written if build is not yet ready ?
Why to use descriptive programming?