Solved

IsDate and IsNumeric functions?

Posted on 1999-01-19
2
1,656 Views
Last Modified: 2012-06-27
Does Sybase System 11 have functions which are equivalent to Microsoft SQL Server's IsDate and IsNumeric functions?  In MS SQL Server you can pass a text string to IsDate and find out if it is valid before you try to do a convert() on it.
0
Comment
Question by:jsullivan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Author Comment

by:jsullivan
ID: 1098560
Edited text of question
0
 
LVL 10

Accepted Solution

by:
bret earned 100 total points
ID: 1098561
No, ASE 11.x does not have IsDate() or IsNumeric() functions.

About the closest you can get to IsDate() is to use "set arithabort off" and then use convert().  If you get an error returned, then it is not a valid date.

The next release (12.0) is expected to support JAVA within the server, which will allow you to write your own functions.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Make the most of your online learning experience.
Learn why we support net neutrality and why the topic is important to all internet users.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question