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
Solved

IsDate and IsNumeric functions?

Posted on 1999-01-19
2
1,638 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
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Sybase ASE 15.7 do not know datepart function 2 1,225
How to install new sybase instance in Linux 4 712
upgrading Sybase from 15.7 to 16 15 4,007
I need expert Sybase Sql help with a query 3 69
Is your phone running out of space to hold pictures?  This article will show you quick tips on how to solve this problem.
This article describes how to reset your Windows 10 password when you've forgotten it.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

791 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