troubleshooting Question

How can I analyze time length from a text field?

Avatar of JT_SIRO
JT_SIRO asked on
ASP.NETC#.NET Programming
7 Comments1 Solution234 ViewsLast Modified:
Due to a design flaw, I have a "Time" textbox field on my asp.net form, where users enter the length of their songs.  This allows them to enter time however they choose, where I should have used validation to force mm:ss.  With that said, I'd estimate that 99% my records are in that format or are null.  

Now I need to query and get all songs under 30 seconds.  Can I do this considering that these values are stored as text in SQL Server?  Also, how do I ignore records that aren't in the proper format or are null?  Thanks
ASKER CERTIFIED SOLUTION
Gorkem Yuksel
Director, IT Development

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros