sqlserver 判断 游标是否存在
sqlserver 判断 游标是否存在
2010-03-23 12:56
sqlserver 判断 游标是否存在
其中 first_cursor 是 游标名称
if cursor_status('global','first_cursor')=-3 and cursor_status('local','first_cursor')=-3
begin
print '不存在'
end
else
begin
print '存在'
end