What the genaric function to connect Sql Server using Sql
Server Authentication and Windows Authentication
Answer Posted / kotike
Function DBConnect(Constr)
set oCon=CreateObject("ADODB.Connection")
oCon.open Constr
if oCon.State=0 then
msgbox "connection not opened"
end if
set DBConnect=oCon
End Function
where ever required just call this function and define the
connection string.
ex: set con=DBConnect("Driver=;Server=;database=;user
id=;passwoerd=")
Regards,
mahi.kotike@gmail.com
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
To which environments does quicktest professional supports?
write the vb script for call to new action in qtp?
Describe function procedure in vbscript.
Explain measuring transaction.
Explain about the test fusion report of quicktest professional (qtp)?
Differentiate the type of test cases which can be automated and which cannot be automated?
Explain calling sub procedure.
whow much strong on VB and C?
What does it mean when a check point is in red color? What do you do?
What is test object model in quicktest professional (qtp)?
What is the default add-ins in qtp?
what is description object?
in a web page How to check and display a particular word from a paragraph?
Our company is having a windows client server application developed in vb.net. so there is a treeview and i am not in a position to record the click events in QTP. so kindly help. Vivek
What is synchronization point in QTP?