Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 608159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:26:02+00:00 2026-05-13T17:26:02+00:00

Using Microsoft SQL Server 2005 and above, what code do I use to validate

  • 0

Using Microsoft SQL Server 2005 and above, what code do I use to validate that an email address is correct?
Is there an email data type?
Is there an email check constraint?
Is there an email rule?
Is there an email trigger?
Is there an email validation stored procedure?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T17:26:02+00:00Added an answer on May 13, 2026 at 5:26 pm

    I don’t usually recommended using a CLR Stored Procedure, but this is a good use of one. SQL’s string handling capabilities are not great, whereas using .NET Regex in a CLR Stored Procedure is straightforward and you can use one of the many existing Regex patterns to meet your needs (such as one of these). See Regular Expressions Make Pattern Matching And Data Extraction Easier

    Failing that (some DBA’s are very strict about enabling the CLR feature), perhaps this might be of interest:

    Working with email addresses in SQL Server

    Update: in response to question in comments: A CLR stored procedure is a database object inside an instance of SQL Server that is programmed in an assembly created in the Microsoft .NET Framework common language runtime (CLR), such as Visual Basic or C#.

    Creating a CLR stored procedure in SQL
    Server involves the following steps:

    • Define the stored procedure as a static method of a class in a language
      supported by the .NET Framework. For
      more information about how to program
      CLR stored procedures, see CLR Stored
      Procedures. Then, compile the class to
      build an assembly in the .NET
      Framework by using the appropriate
      language compiler.

    • Register the assembly in SQL Server by using the CREATE ASSEMBLY
      statement. For more information about
      how to work with assemblies in SQL
      Server, see Assemblies.

    • Create the stored procedure that references the registered assembly by
      using the CREATE PROCEDURE statement. Ref.

    See Writing CLR Stored Procedures in C# – Introduction to C# (Part 1)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Microsoft SQL Server 2005, is there any way to see when a table
I'm using Microsoft SQL Server 2005. I'm creating a random record generator that will
I'm using VB.NET and Microsoft SQL Server 2005 to create an application. I was
Using Microsoft SQL server 2008 I have a query that is in need of
I'm using Microsoft SQL Server for my database. There is an ID column in
Using Microsoft SQL Server 2005 - wondering how can I escape parenthesis in my
I'm using Microsoft SQL Server 2005. I think I need a sub-query. I'm looking
I'm trying to write a Microsoft SQL Server 2005 query that counts a total
I'm using microsoft SQL server management studio 2005 I'm trying to run a job
HI, Using Microsoft SQL Server 2005: I have a table test: id, link_id, name

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.