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 |
Hi All, I need code for how to execute qtp scripts from excell sheet
Hi. please provide license key for QTP 9.2, I have windows XP on my machine Thanks in Advance, moreshwar
How to create configuration scripts
How to see entire results at the same timeafter the batch run.. Cannot see the entire results at a time. Is there a easier way view everthing at same,as our batch file very large
Write Descriptiv prg 4 login logn....txt bx password---txt bx ok---btn
what ar the challenges do we face while testing webbased applications using the automation tool qtp or any?
explain abt dyanamic changing object with example?
I have test cases in excel sheet but i am using quality center.How can i copy the testcases from excel sheet to quality center?explain this process.
Which property do you use to retrieve or assign data into a cell in a Data Table object?
difference between do while and do until ?
hi is there any chance to change encoding the password
How many actions we can create with in a test?