how to connect qtp to sqlserver?(if any body know about this please send mail to me:sheik_feroz5@yahoo.com)thank u
Answer Posted / sunita
Dim sServer, sConn, oConn, sDatabaseName
sDatabaseName = "Migrations"
sServer = "hyrdwsz0010"
Set oConn = CreateObject("ADODB.Connection")
oConn.Open "provider=sqloledb;data source=" & sServer & ";initial catalog=" & sDatabaseName &";Trusted_Connection=Yes;"
oConn.CommandTimeout = 0
Set oRs = oConn.Execute("Select * from dbo.CLIENTLISTSS")
Set RowCount= oConn.Execute("Select Count(*) from dbo.CLIENTLISTSS")
Msgbox FormatNumber(RowCount(0),0)
Msgbox oRs.Fields.Count
Msgbox oRs.Fields.item(1)
arraydata=oRs.GetRows
Msgbox arraydata(1,1)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain about the test fusion report of quicktest professional?
HOw to add the recovery file at runtime to the test file .
How to handle dynamic objects in quicktest professional?
Hi Friends... By using QTP , can we test .net products...and that product supports different languages.. thanx in advance..
Can we access the java methods in qtp. Because my requirement is to access the swt(for eclipse an it is java code) methods in qtp is it possible?
How do I get the QTP scripts result in xml format by using vb script function?
Explain calling sub procedure.
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.
give me the code to save all messages of inbox of gmail into a folder and notepad
1. wat are the main diff b/w QTP 8.0 AND QTP 9.2 ( not user interface) 2. wat is the meaning of Keyword in keyword driven frame work? 3. how u will handle the unknown errors while exucution. (not recovery scenario)
What are the different properties of an web object
What is the default object synchronization timeout in qtp?
What are the factors on which script execution time is dependent?
What environment does qtp run in?
What is the extension of QTP local Repository? If it is .mtr then what is .bdb extension stands for?