September 19, 2008 at 5:27 am
In the query below:
FieldValueID-nvarchar(50) [since it can hv comma separated values 1,2]
ID - int
Select CountryName from MasterCountry where ID in (FieldValueID)
but this give an error...how do i read the values..pls lemme kno
September 19, 2008 at 5:40 am
For better, quicker answers, click on the following... http://www.sqlservercentral.com/articles/Best+Practices/61537/ (Thanks Jeff)
You could CAST the [ID] as a varchar.
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
September 19, 2008 at 7:57 am
avani104 (9/19/2008)
In the query below:FieldValueID-nvarchar(50) [since it can hv comma separated values 1,2]
ID - int
Select CountryName from EYARDMasterCountry where ID in (FieldValueID)
but this give an error...how do i read the values..pls lemme kno
Search for Array+SQL Server in google
Failing to plan is Planning to fail
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply