SQLGetCursorName

If the application does not specify a cursor name, the SQL Server Native Client ODBC driver generates one for the application upon cursor generation. The application can use SQLGetCursorName to retrieve the driver-defined cursor name for positioned UPDATE and DELETE statements. The application does not need to call SQLSetCursorName to take advantage of positioned data manipulation statements.