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 2005 Forums
 Transact-SQL (2005)
 searching records inside stored procedure

Author  Topic 

desikankannan
Posting Yak Master

152 Posts

Posted - 2010-11-17 : 23:13:51
hi,
i have one lakh records in a table, i want to process that record inside the strored procedure,which is the best way to check the record quickly looking forward the reply.

Desikankannan

Desikankannan

pk_bohra
Master Smack Fu Yak Hacker

1182 Posts

Posted - 2010-11-18 : 01:11:58
I think

If exists(select 1 from yourtable where <condition>)
Go to Top of Page

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2010-11-18 : 03:14:22
I think you need to give more details of what you're trying to do.

--
Gail Shaw
SQL Server MVP
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2010-11-18 : 05:38:57
Why did you start a new thread?
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=153047

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -