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.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2006-03-02 : 08:00:25
|
| Madhavi writes "I need to write a stored procedure to check the input parameter passed to SP is a numeric or non numeric. How to check this. please help meI have tried in this way.. But it doesn't workcreate proc isNumeric( @param varchar(60)) isbegin declare @num decimal(20,10) set @num= convert(decimal, @param) if @@error = 0 return 1 else return 0end" |
|
|
robvolk
Most Valuable Yak
15732 Posts |
Posted - 2006-03-02 : 08:00:58
|
| Why are you creating a procedure named IsNumeric when there is already a built-in function with the same name, that does exactly what you want? |
 |
|
|
Kristen
Test
22859 Posts |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
|
|
|