How to make a constraint to check if the entered time is in valid form?

Recommended Answers

All 5 Replies

If the column is a DateTime then it will raise an error if the value could not be parsed. SQL already has data checking constraints.

Thanx a lot for being the only one who answers my questions promptly.

Not many people post in the forum :(

u r right but ur tips and help are very useful and highly appreciated :)

There is always that "Add to reputation" button if you feel the answer warrants it :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.