How do I generate a Quality Center recordset with C#?
Posted
by JonnyGold
on Stack Overflow
See other posts from Stack Overflow
or by JonnyGold
Published on 2009-10-08T10:21:21Z
Indexed on
2010/04/13
0:03 UTC
Read the original article
Hit count: 768
I am converting an application that connects to Quality Center via the OTA API from VB.net to C#. The application makes extensive use of recordsets, but I have not been able to get them to work in C#.
Specifically, I have trouble casting Command and Recordset to the correct format for C#. Everything I have tried has failed.
Following, is an VB.net example of the code that I need to convert.
Private Function GetRecSet(ByVal Qry As String, TD as TDConnection) As Recordset
Dim Com As Command = TD.Command
Com.CommandText = Qry
GetRecSet = Com.Execute
GetRecSet.First()
End Function
© Stack Overflow or respective owner