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 2000 Forums
 SQL Server Development (2000)
 Problem with in

Author  Topic 

vipul_parekh_b
Starting Member

4 Posts

Posted - 2007-09-06 : 10:22:28
Hi all,

I am having tough time with this query.

declare @strId varchar (255)
set @strId='344,660'
select * from LedgerMaster where LedgerId in (@strId)

LedgerId is a numeric

Regards,
Vipul Parekh

Kristen
Test

22859 Posts

Posted - 2007-09-06 : 10:28:26
See http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=55210&SearchTerms=CSV,Splitting%20delimited%20lists,Best%20split%20functions

Kristen
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-09-06 : 10:34:45
Also refer
http://www.sommarskog.se/arrays-in-sql.html

Madhivanan

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

- Advertisement -