Answer Posted / ravi_kanakam
Check this............
Function db_connect( byRef curSession ,connection_string)
dim connection
on error resume next
' Opening connection
set connection = CreateObject("ADODB.Connection")
If Err.Number <> 0 then
db_connect= "Error # " & CStr(Err.Number) & " " &
Err.Description
err.clear
Exit Function
End If
connection.Open connection_string
If Err.Number <> 0 then
db_connect= "Error # " & CStr(Err.Number) & " " &
Err.Description
err.clear
Exit Function
End If
set curSession=connection
db_connect=0
End Function
| Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
Hi Samrat, Thank u very much, what u said it is right.
what is the frame work in J-meter?
iam working in QTP for 2+ of exp if i attend the interview what r questions asked in perfomence testing{loadrunner} ? pls any one can say answer to this question?
Explain the benefits of quick test pro(qtp)?
how do u manipulating INI, DLL and / or registry files in support of your test environment? actually what do u mean by INI and DLL or registry files. plzzz its urgent do answer
Where we use data driver in qtp?
How to use conditional loops in qtp ?
How will we compare the texts in the two word files using QTP writing the script in Descriptive Programming. Thanks
I opened gmail login into gmail and i have to save (Pass or move) all the mail into notepad please give me code Thanks of all
What are the types of object repository?
When using descriptive programming?
What is expert view and keyword view?
What is business process testing(bpt) in qtp?
What is the synchronization point in qtp?
Explain sub procedure of vbscript.