Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Way to read more records from sql server

Author  Topic 

akki1563
Starting Member

10 Posts

Posted - 2012-02-02 : 22:33:42
Hi,
I have around 50000 records in one table so if i use select statement on database may get locked till all 50000 records are read. if any new request comes to db.. then it will be hanged hang. how can i handle this situation. Please help.

Regards,
Akki

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-02-02 : 22:37:08
What?! Why are you querying the whole table? Could you explain in more detail? What locking level are you using? What isolation level are you using? Could you post the query?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-02-02 : 23:30:48
use snapshot isolation mode. Didnt understand what you're trying to do with 50000 + records fetched though. is it used for populating another table?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -