> oCommand.Connection.Open() > > ' Add all command text > If oCommandText.Count > 0 Then > For Each lcCommandText In oCommandText > oCommand.CommandText = lcCommandText > oCommand.ExecuteNonQuery() > Next > End If > > oCommand.CommandText = tcSQL + " INTO CURSOR Temp" > oCommand.ExecuteNonQuery() > oCommand.CommandText = "RETURN SETRESULTSET(""Temp"")" > oCommand.ExecuteNonQuery() > > oDataAdapter.SelectCommand = oCommand > oDataSet = New DataSet > > ' By default, .NET does not add the specific field length, which is needed in XML as at the other end > ' someone would always get memo field instead of character field > oDataAdapter.MissingSchemaAction = MissingSchemaAction.AddWithKey > > oDataAdapter.Fill(oDataSet) >>
*VFP Stored Procedure: PROCEDURE DoSomething LPARAMETERS x SELECT * FROM myTable WHERE something = x INTO CURSOR myCursor RETURN SETRESULTSET("myCursor") ENDPROCand in VB.NET something like:
... With oCommand .CommandType = CommandType.StoredProcedure .CommandText = "DoSomething" '.Parameters.Add ..... End With da.SelectCommand = oCommand da.Fill(oDataSet)Can't remember for sure whether it's a issue but JIC best use NOFILTER on the cursor to be returned...