Change default to local cursor

  • Hello,

    I want to change the option SET_CURSOR_DEFAULT in SQL server 2000. What is the command to change the type of cursor to GLOBAL in the setting of SQL Server ?????? I search but i don't find...... Please, can you help me?

    Thank's

    Gaëlle

     

     

  • From BOL...

    Transact-SQL Extended Syntax
    DECLARE cursor_name CURSOR 
    [ LOCAL | GLOBAL ] 
    [ FORWARD_ONLY | SCROLL ] 
    [ STATIC | KEYSET | DYNAMIC | FAST_FORWARD ] 
    [ READ_ONLY | SCROLL_LOCKS | OPTIMISTIC ] 
    [ TYPE_WARNING ] 
    FOR select_statement 
    [ FOR UPDATE [ OF column_name [ ,...n ] ] ] 
    
    ...and to find out what the current default for the database is...
    select DATABASEPROPERTYEX('dbName', 'IsLocalCursorsDefault')
    1 = TRUE
    0 = FALSE
    NULL = Invalid input
    







    **ASCII stupid question, get a stupid ANSI !!!**

  • Thank you, I've find the command :

    ALTER DATABASE TEST SET CURSOR_DEFAULT LOCAL;

     

Viewing 3 posts - 1 through 2 (of 2 total)

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