Well, Just an Idea.. You can save them in one field with some seperated delimeters like '@' or ',' etc , but trying using varchar datatype with its maximum length of 8000 chars... then to get the results in the row wise you can use the following functions which crack the columns values to the rows.. CREATE FUNCTION [dbo].[CrackInRows] (@delim varchar(1), @Phrase2Crack as varchar(8000))RETURNS @CrackRow table ( INROWS varchar(1000))asBEGIN insert @CrackRowSelect NullIf(SubString(@Delim + @Phrase2Crack + @Delim , IDNos , CharIndex(@Delim , @Delim + @Phrase2Crack + @Delim , IDNos) - IDNos) , '') AS INROWFROM IDNosWHERE IDNos <= Len(@Delim + @Phrase2Crack + @Delim) AND SubString(@Delim + @Phrase2Crack + @Delim , IDNos - 1, 1) = @Delim AND CharIndex(@Delim , @Delim + @Phrase2Crack + @Delim , IDNos) - IDNos > 0returnEND
So using In Clause you can find the values which are searched.. Hope this helps youIf Debugging is the process of removing Bugs then i Guess programming should be process of Adding them.