Hi,
I am trying to get the list of columns (fields) in a stored procedure.
I know I am supposed to use OpenSchema along with adSchemaProcedureColumns. However, the I could not get the correct syntax to use it.
I am attempting the following code:
1.Dim rsCols as ADODB.Recordset
2.Set rsCols = New ADODB.Recordset
3.
4.Set rsCols = gOLEConn.OpenSchema(adSchemaProcedureColumns, Array(Empty, Empty, "MyProcName"))
5.do While Not rsCols.EOF
6. Debug.Print rsCols!COLUMN_NAME
7. rsCols.MoveNext
8.Loop
When executing the code, at line 4, it gives me an Error '3251 - Object or provider is not capable of performing requested'. No parameters in the SP. Importantly: I am using Sybase 15.
Any suggestions/help much appreciated.
Niz Niz