Finding some code in UFT
I found some code for QTP but can not find in UFT like:
adCmdText would be for SQL query if you want to execute a stored procedure then you have to use
'Set the connection '............... 'Set the command DIM cmdSET cmd = Server.CreateObject("ADODB.Command") SET cmd.ActiveConnection = Connection 'Set the record set DIM RSSET RS = Server.CreateObject("ADODB.recordset") 'Prepare the stored procedurecmd.CommandText = "[dbo].[sptestproc]"cmd.CommandType = 4 'adCmdStoredProc cmd.Parameters("@Option1 ") = Opt1 cmd.Parameters("@Option2 ") = Opt2 'Execute the stored procedure SET RS = cmd.ExecuteSET cmd = Nothing
Anyone can help in this case.
Re: Finding some code in UFT
Have you tried adding the code to a vbs file in a function, associating the vbs (library) file to UFT and running it?