Results 1 to 4 of 4

Thread: Stored procedure hanging in Read only database...

  1. #1
    Madhavan Rajagopal Guest

    Stored procedure hanging in Read only database...

    Problem Description:

    Stored Procedure hanging when try to execute in READ_ONLY Database. Though the stored procedure is highly complicated,it runs smoothly on the same server if the Database option is set to READ/WRITE. Not all stored procedures are hanging in READ_ONLY database,only if the stored procedure tries to retrieve more records (say 10000 ).

    If the SQL Statements present inside the stored procedures are executed,they are getting executed perfectly but hangs if it is executed as stored procedure.

    On restarting the SQL Server, stored procedure getting executed only for the first time in READ_ONLY database but executing it again for the second time, it starts hanging. ( I tried executing the stored procedure after clearing the procedure cache but still hangs ).

    Environment:

    Windows NT 4.0 (Service Pack 5 )
    SQL Server 7.0 ( Service Pack 3 )
    Multi Processor ( 2 - 500 Mhz )

    Let me know if you need more information on it.


  2. #2
    ItsMeAgain Guest

    Stored procedure hanging in Read only database... (reply)

    Try recompiling the storedproc for each execution.

    ------------
    Madhavan Rajagopal at 5/7/01 8:09:04 PM

    Problem Description:

    Stored Procedure hanging when try to execute in READ_ONLY Database. Though the stored procedure is highly complicated,it runs smoothly on the same server if the Database option is set to READ/WRITE. Not all stored procedures are hanging in READ_ONLY database,only if the stored procedure tries to retrieve more records (say 10000 ).

    If the SQL Statements present inside the stored procedures are executed,they are getting executed perfectly but hangs if it is executed as stored procedure.

    On restarting the SQL Server, stored procedure getting executed only for the first time in READ_ONLY database but executing it again for the second time, it starts hanging. ( I tried executing the stored procedure after clearing the procedure cache but still hangs ).

    Environment:

    Windows NT 4.0 (Service Pack 5 )
    SQL Server 7.0 ( Service Pack 3 )
    Multi Processor ( 2 - 500 Mhz )

    Let me know if you need more information on it.


  3. #3
    Madhavan Rajagopal Guest

    Stored procedure hanging in Read only database... (reply)


    I cannot do that since it is a read only database.


    ------------
    ItsMeAgain at 5/8/01 1:11:56 PM

    Try recompiling the storedproc for each execution.

    ------------
    Madhavan Rajagopal at 5/7/01 8:09:04 PM

    Problem Description:

    Stored Procedure hanging when try to execute in READ_ONLY Database. Though the stored procedure is highly complicated,it runs smoothly on the same server if the Database option is set to READ/WRITE. Not all stored procedures are hanging in READ_ONLY database,only if the stored procedure tries to retrieve more records (say 10000 ).

    If the SQL Statements present inside the stored procedures are executed,they are getting executed perfectly but hangs if it is executed as stored procedure.

    On restarting the SQL Server, stored procedure getting executed only for the first time in READ_ONLY database but executing it again for the second time, it starts hanging. ( I tried executing the stored procedure after clearing the procedure cache but still hangs ).

    Environment:

    Windows NT 4.0 (Service Pack 5 )
    SQL Server 7.0 ( Service Pack 3 )
    Multi Processor ( 2 - 500 Mhz )

    Let me know if you need more information on it.


  4. #4
    Mad Guest

    Stored procedure hanging in Read only database... (reply)

    ????


    ------------
    Madhavan Rajagopal at 5/7/01 8:09:04 PM

    Problem Description:

    Stored Procedure hanging when try to execute in READ_ONLY Database. Though the stored procedure is highly complicated,it runs smoothly on the same server if the Database option is set to READ/WRITE. Not all stored procedures are hanging in READ_ONLY database,only if the stored procedure tries to retrieve more records (say 10000 ).

    If the SQL Statements present inside the stored procedures are executed,they are getting executed perfectly but hangs if it is executed as stored procedure.

    On restarting the SQL Server, stored procedure getting executed only for the first time in READ_ONLY database but executing it again for the second time, it starts hanging. ( I tried executing the stored procedure after clearing the procedure cache but still hangs ).

    Environment:

    Windows NT 4.0 (Service Pack 5 )
    SQL Server 7.0 ( Service Pack 3 )
    Multi Processor ( 2 - 500 Mhz )

    Let me know if you need more information on it.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •