Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to check for an integer and flag for errors

Status
Not open for further replies.

soumenbanerjee

Programmer
May 19, 2004
1
US
Hi,
I have a table where a column is declared as varchar(15). But the value in the column should be an integer of 9 digits only .. i.e from 000000000-999999999. A stored proc is checking whether this column has only acceptable values. If the value present is not an acceptable one i.e if the value is like say, 0000a00X0, then it should update another column with an errorMessage. The above check is to be done within the stored proc. only. Pl. advice how do I do this.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top