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
i have a doubt can anyone tell me where are scripts stored while using QTP.Tell me the exact procedure takes place in real time?like how we call scripts how to proceed after writing scripts?how scripts are executed etc?i heard some use Qc whether others dont use.so tell me whole procedure for both the things it will be a very big help.as i have interview i want to have whole idea on this.its very urgent.
Explain the differences between table and db checkpoints?
assume i have few url link how will i dynamically call then using descriptive programming?
By using QTP can we record any log files written by the application which is in execution?
How you know that a test case is a regression test case
I want to test my vb.net solution file using qtp. Does Qtp test only .exe file?
Explain how qtp identifies object?
Does quicktest professional (qtp) is unicode compatible?
Tell me about qtp?
in a web page How to check and display a particular word from a paragraph?
how to compare two bitmaps( 1. clients requirement & 2. Designed by dev) in qtp 8.2 wann clear steps
How QTP support all types of applications (platforms)?
how we connect 1. qtp9.2 to the quality center9.0? 2. Load runner8.0 to the quality center9.0
can test automation improve test effectiveness?
what type of run time errors you get while you ar edoing rpg program?