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)
 Which is better

Author  Topic 

dineshrajan_it
Posting Yak Master

217 Posts

Posted - 2008-03-17 : 02:06:45
Hi.

i have a sp and a function.

declare @vemail varchar(1000)
set @vemail = 'dineshrajanmt@gmail.com,123@yahoo.com'
1)
select *
from #TMPS INNER JOIN
DBO.fn_DelimitSr(@emailcontact)
ON vemail = number

2)
select *
from #TMPS where vemail in(
DBO.fn_DelimitSr(@emailcontact))

whihc of above two will be better and perform faster.Thanks

dineshrajan_it
Posting Yak Master

217 Posts

Posted - 2008-03-17 : 02:27:31
Hi.iam sorry pls change @email to @emailcontact.
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-03-17 : 05:04:05
http://weblogs.sqlteam.com/mladenp/archive/2007/05/18/60210.aspx

Madhivanan

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

- Advertisement -