Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old March 31st, 2006, 02:34 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Cochin, Kerala, India.
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default Format validation

Dear all,

May I know whether there is any way to prevent a data of incorrect format to go into a column ? I have a table in which I store email address. I need to ensure that only a proper email address (format as defined by a regular expression) go to that column. If format is not according to the regular expression, it should prevent insertion / updation of that record.

I need to do this with the help of SQL server feature itself rather than using a script in my web program.

May I know whether this is possible in SQL Server 2000 ?
  #2 (permalink)  
Old March 31st, 2006, 04:10 AM
Friend of Wrox
 
Join Date: Oct 2004
Location: delhi, delhi, India.
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

Hi Madhukp!!
you can find some useful info on it
plz visit the link
http://www.sqlteam.com/item.asp?ItemID=13947
http://www.codeproject.com/managedcpp/xpregex.asp
hope this will help you

Cheers :)

vinod
  #3 (permalink)  
Old March 31st, 2006, 06:18 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Cochin, Kerala, India.
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default

Hi Vinod,

Thank you very much for these links. This is the exact information I was looking for.

Madhu


Similar Threads
Thread Thread Starter Forum Replies Last Post
Standalone validation + web form validation morbo Struts 0 August 19th, 2008 04:02 AM
multiple email validation (different format) kumiko Javascript 2 July 22nd, 2008 08:06 AM
Convert British format date to American format? fyr PHP How-To 0 December 19th, 2007 03:17 PM
Convert Rich Text Format to Ordinary Format in ASP Andraw Classic ASP Basics 1 August 31st, 2007 10:05 AM
Data Validation and format zone Excel VBA 2 August 7th, 2007 02:53 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.