Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Deallocate cursor - native SQL

Former Member
0 Kudos

Hi Experts,

I am writing a native SQL query. Can anyone know why the following native SQL statement is giving me a dump.

The database is MS SQL 2005



exec sql.
  open dbcursor for 
    select statement....
endexec.

exec sql.
  close dbcursor
endexec. 

exec sql.
  deallocate dbcursor
endexec. 

I get a dump when i use deallocate dbcursor.

Can anyone let me know how can I use deallocate.

Regards,

Abdullah.

2 REPLIES 2

Former Member
0 Kudos

Try this in the Forum

Database & OS Platforms -> SAP on SQL Server

Former Member
0 Kudos

using open sql now due to inconsistent performance of native sql.