Cursor structure

  • Is there a stored procedure, a utility, or a command that will allow me to examine the structure of a cursor similar to the SP_Columns procedure?  I want to be able to see how the cursor columns are defined after I run a query to select data into a cursor.

    Jim White

  • Select * from master.dbo.syscursorcolumns

  • I tried doing the select you recommended but I got the following error message back in Query Analyzer:

        SELECT permission denied on object 'syscursorcolumns', database 'master', owner 'dbo'.

    Do I have to go to my DBA and get him to allow me permission to do this or what?

    Jim

  • Most likely explanation...

  • sp_describe_cursor_columns


    * Noel

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply