Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert from char to int
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Convert from char to int
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01092963
Message ID:
01092963
Views:
49
How in SQL would i go about converting from a Character to a String. The field is a character field, RefNo. RefNO can be a number, or a word, such as CASH. If it is a number then i need to be able to find the MAX of it in order to add one to it for the next RefNo, but if i do convert or cast it gives an error when it hits a character. Is there anything like VFP's VAL() function that will return a number if it can, but return 0 if it is characters?

Thanks
Next
Reply
Map
View

Click here to load this message in the networking platform