By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,247 Members | 871 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,247 IT Pros & Developers. It's quick & easy.

Need to extract numbers from a varchar column

P: 1

I have a varchar column containing a list of numbers separated by commas.

eg ColName Type Data
NumberList Varchar(50) 15,1,14,13

What I need to do is to check that the column does not contain any number less than 1 or greater than 15.

Probably I can rite a function but that will be damn inefficient

Please recommend if there is a better way of doing this.

Even if a function is ritten any tips on how to keep it efficient

Dec 6 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.