How to get the column count and column name from the
resultset in the database connection program?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to Test the mainframe application?

2083


Why qtp the best testing tool?

779


when will you do debug your script? and explain that process?

1680


How do you create new test sets in td?

744


What are the ordinal identifiers in web page?

865


Hai anyone please "Explain about Framework in QTP?"

1869


How can we import into Excel "Details" ,"Result" ,"Time" parameters from within a Results Report which is generated after a Run error when a script is executed in QTP? Refer E.g below Status Functionality Description RunDate Fail Login User should be able to Login 12/3/2007 StartTime EndTime Details* 1:31:58 PM 1:32:29 PM (this one i want)

1765


Whats the realtime QTP testing process

2204


Will there be any standards or requirements for page appearance and/or graphics throughout a site or parts of a site?

815


What is the use of ordinal identifier in qtp?

793


What is the process of synchronizing qtp and aut?

787


1 Folders in VSS 2 In navigation script there are 100 script i want to run first 50 and 37th script also not needed to run how to do this 3 What is navigation script,Driver script, business script what we are loaded in this script 4 use of resource tab 5 Difference between verification and validation give real scenario example 6 file scripting object when to use it 7 what are the problems you are faced while testing web application 8 difference between expert view and keyword view 9 difference between QTP 8.2 and QTP 9.2 navigation frame work please answer these questions from real time working people as early as possible

1836


How to add object to object repository in qtp9.0 Suppose for brower yahoo home page

1640


I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format. Hence, if possible, kinldy mail PDF file to my mail-ID: sushmapokhriyal79@gmail.com

1740


What is TOM in QTP?

2019