What the genaric function to connect Sql Server using Sql
Server Authentication and Windows Authentication
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 |
How to integrate QTP with QC using VB Scripting? What are the prerequisites to connect with QC?
how do we know whether all objects are stored in the object repository or not? how can we know if a particular object is not stored in the repository?
Please mail me the license key of QTP 9.5 t v.sadangi@gmail.com ????? thx
how to pripare BRS/FRS Document for different projects?
What is meant by Step Generator in Qtp How is it used? pls gimme in detail
What are the Features & Benefits of Quick Test Pro (QTP)..?
how to post xml data from QTP scripts to any application?
How to supress warnings from the "Test results page"?
why you have standardized functions? plzzz guys with real time exp. do answer
when i perametarization of the test through outputcheckpoint,i have seen run time error i.e outputcheckpoint mismatch .Plz tell anybody to me(qtp).How to clear that?
Hi frens! I am testing VB project with MS Access database. At add button click my record is storing in data table and it is shown in datagrid. So at Delete button click i want to check datagrid rows 9before and after delete). so how can i do it using descriptive programming?
How can i learn Descriptive programming in QTP. Please reply.