write progamming connecting QTP to database sql? this is
question asked by interview? pls any answer this?
Answer Posted / ajit
Dim cn,rs
Set cn = createboject("ADODB.CONNECTION")
Set rs = createobject("ADODB.RECORDSET")
cn.open "DSN=D1"
rs.open "select empno,empname from emp",cn
while
rs.EOF<> TRUE
print rs(empno)&" "rs(empname)
rs.movenext
wend
cn.close
rs.close
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is the difference in testing a client-server application and a web application?
Brief the process of testing with UFT?
Explain about Test Fusion Report of QTP?
If I change the property value at runtime is it effect is object repository?
Why is Client side image is preferred over server side image?
How can I import environment from a file on disk?
What are the challenges you faced during you entire life automation ?
what is run action?
I have enrolled for a QTP course which is a four weekend course.Do you think its a good way to start off learning this tool?What all do i need with me in order to become a pro at using this tool?
Can we use index on view?
How to release all resources file from the QTP?
This is Karthic and my mail id is karthic.venkitapathi@gmail.com, please give me an idea to crack qtp 10
Define Canvas view of UFT?
how to acess a test in RSA?
"What are the common constrains that we need to consider when we prepare testcases for ASP application". Thanks in Advance...