How to check Valid Email in sqlserver2008R2

Hi ,
     I was created one application using Asp.Net, Sqlser2008 R2 , Actually I have one table named "tblRegisterUser" and have column names are id, email in Sqlserver2008 R2.
id             Email
1        [email protected]
2        [email protected]
3        [email protected]
then When I creating [email protected] then click submit button then I need to display [email protected], [email protected](simillar id created from table) in popup . This is just Warning message. because i need to duplicate Email id.
Please help me If any one knows this bug.

If you want to allo only emails with @live.com, then you can try as below:
Idea is to create a check constraint ....you can also specify more email domains as required too.
create table Test_San
id int,
email varchar(200) NOT NULL CHECK ((email like '%live.com'))-- Or (email like '%gmail.com'))
insert into Test_San select 1,'[email protected]'
insert into Test_San select 1,'[email protected]'
insert into Test_San select 1,'[email protected]'
Select * From Test_San
Drop table Test_San
EDIT: I would suggest you can do these validation at your presentation/application layer at .NET code side which is more appropriate.

Similar Messages

  • Trying to rent movie from Apple TV. Message states a valid address is necessary to purchase. We have purchased about 15 show in the last month along. Any suggestion on how to update valid email address

    trying to rent movie from Apple TV. Message states a valid address is necessary to purchase. We have purchased about 15 show in the last month along. Any suggestion on how to update valid email address.

    I got the same error and can't get it to work.  My email and home address have not changed in the 3 years I've been using this device, my credit card info is up to date and my most recent rental was 2 days ago yet I get the error message on both the Apple TV and in iTunes.  I don't understand what the issue is, nothing is invalid.

  • HT1694 how to check apple email in hotmail account

    how to check apple email in hotmail / Live / account
    which port 995
    do i need SSL to be checked

    Shahab Kalam wrote:
    how to check apple email in hotmail / Live / account
    You don't.
    Apple email is part of iCloud.com
    If you want to check your hotmail using the Mail app on the iPad...
    -> http://windows.microsoft.com/en-US/Hotmail/mobile

  • Any service available on net to check valid email addresses?jwenting, help.

    Is there any 100% reliable service available on net to check the valid email address so that the mail should not get bounced back if sent to the email id.
    According to jwenting in previous topic, there is one service. Here are his quotes.
    Spammers would love to have such a
    service. Just send random combinations to that
    service at a rate of a hundred thousand a minute and
    you have in a few hours a complete list of all
    working addresses on the net.
    Good enough that you can repeat the process before
    every run and you're never getting bounces again.Could anybody explain what is meant by this?

    He's saying "No there is no such service". It would provide yet another haven for crappy spammers.

  • How to check blackberry email fron home computer

    How do i check blackberry email fron home computer

    Are you talking about your actual BB VZW account? I don't believe you can check that from a computer. If that is the only email account you have I would suggest you go to Yahoo or Gmail and set up and email address. Make sure you check leave a copy on server. Then go to Verizon BIS site and set that email up. You will get email on both devices. Hope this helps

  • How i check my email from pc

    can i check my email from pc

    You can either go to icloud.com with your browser, or add your iCloud email account to your email client using these settings: http://support.apple.com/kb/HT4864.

  • How to check validity of data reference

    Hello everybody,
    in my application I use a help class to buffer data objects.
    This class contains one attribute which is an internal table ( columns: DATAID and DATAREF )
    I use this databuffer to transport data between different classes.
    Now I did the following mistake:
    First I call the method 'METH_CHECK'. As import parameter I pass a reference to my databuffer class.
    In method 'METH_CHECK' I call a function module 'FUNC_1' passing my reference to my databuffer class.
    In 'FUNC_1'  I declare a local variable 'lv_value'.
    Then I use the statement 'GET REFERENCE OF lv_value' and save this reference into my databuffer class.
    After processing functions / methods I´m back at the point where 'METH_CHECK' was called.
    When I check my databuffer class, I´ve got one entry in it.
    The reference I saved while processing 'FUNC_1' . But the referenced data has already be freed ( remember, it was a local variable ).
    In the debugger I see the column where I save the references to data objects.
    The field value has changed from a valid reference to i.e. 'FREED ITAB: 5'...
    OK, I know what is wrong... No problem in my application, but I want to clean
    this entry... How can I check this...
    I can not check like
      LOOP AT me->buffer INTO wa_buffer.
        IF wa_buffer-data IS INITIAL.
          DELETE...
        ENDIF.
      ENDLOOP.
    or
      LOOP AT me->buffer INTO wa_buffer.
        IF wa_buffer-data CP 'FREED'.
          DELETE....
        ENDIF.
      ENDLOOP.
    How can I notice an invalid reference at this point?
    Thank you very much,
    Oliver Seifer

    Hello Oliver,
    Another approach might be to avoid any dependency to the caller at all.
    Regards
      Klaus
    data:
        buffer_Reference  type ref to data.
    field-symbols:
       <buffer_Data> type data.
    create data buffer_Reference like i_Value.
    assign buffer_Reference to <buffer_Data>.
    <buffer_Data> = i_Value.

  • Is there a way to change how Thunderbird checks multiple email accounts from several at once to checking them one at a time?

    There is one problem I've had that I've never seen anyone else have! I live in an area of the Philippines with very poor performing Internet service. Things are slow but, it's enough if you have patience. My freelance work requires that I have multiple email accounts. Thunderbird handles this well except when initially checking emails. Because it checks email accounts all at once, I usually get timeouts and then have to resort to checking them manually, one at a time. So, I'm wondering if the way Thunderbird checks accounts can be changed to one at a time, especially at startup? Thanks!

    Don't know any 'automatic' way - but, i have "Fetch Headers only" set on each of my 'secondary accounts'.
    With varying internet service, manual "Get Messages" is probably the "Best Practice" because you will know how good your service is before you even try.
    maybe set "Check for new messages every 'n' minutes" to different times
    (3 minutes, 6 minutes, etc.) on each 'secondary' account.

  • How to check validation for a input field?

    For example, I need to check the validation of a field, if OK, then the field will be inputted, otherwise, there will rise a message, how can I implement that?
    Thanks and best regards,
    Anders

    Hi Andres,
    U can write a code in Request Processing--DO_VALIDATE_INPUT
    DATA: LR_BTADMINH       TYPE REF TO   CL_CRM_BOL_ENTITY.
      LR_BTADMINH  ?= ME->TYPED_CONTEXT->BTADMINH->COLLECTION_WRAPPER->GET_CURRENT( ).
        LV_ZZAFLD000057 = LR_ENTITY->GET_PROPERTY_AS_STRING( 'ZZAFLD000057' ).
    IF  LV_ZZAFLD000057 IS INITIAL.
    DATA: L7_MSG_SERVICE TYPE REF TO CL_BSP_WD_MESSAGE_SERVICE,
              LVSP_MSG_V1  TYPE STRING VALUE 'Spare in Progress'.
        L7_MSG_SERVICE = ME->VIEW_MANAGER->GET_MESSAGE_SERVICE( ).
        L7_MSG_SERVICE->ADD_MESSAGE(
            IV_MSG_TYPE       = 'E'
            IV_MSG_ID         = 'ZBSP'
            IV_MSG_NUMBER     = '008'
            IV_MSG_V1         = LVSP_MSG_V1 ).
    ENDIF.
    Regards,
    Lokesh.

  • How To check validity of XML File

    can any one tell me how to find whether an XML file is valid or not before beginning to parse the XML file
    Thanks in advance

    Xerces will do that for qou, if you activate validation (and, of course, a DTD is specified in the file). Read the documentation of Xerces at xml.apache.org

  • How to check validity period

    Hi All,
    i have a requirement, while creating sales order i want to check creation date with some date range (this will come from some ztable). whether the creation date is in the range or not.
    Can you help on this..
    Regards.,
    Raj.,

    Hi,
    Use user exit 'MV45AFZB', form routine "USEREXIT_CHECK_VBAK".  If you want to validate the date at the time of saving
    the document use the exit "MV45AFZZ", form routine "USEREXIT_SAVE_DOCUMENT_PREPARE".  Do the validation based
    on the value of structure field VBAK-ERDAT.
    Regards
    Vinod

  • How to check sent email messages?

    Hi all.
    I set up my imap account on the phone and it works great.
    Only problem is, how do I check my sent messages?
    I thought it might be in the 'Mailboxes' area, but the only thing there is inbox..
    Anyone have any ideas?
    Thanks!

    What type of IMAP account is it? Is it a personal account? Or .Mac account?
    I know on my personal IMAP account, I could only view the Inbox as well and the issue had something to do with my SENT folder being outside of my Inbox folder tree. Upon dragging the SENT folder inside of the overall IMAP directory folder tree it showed up on my iPhone.
    This is obviously just an example of one scenario but something worth trying.

  • How to check .me email address availability

    I am thinking of moving my wife and me from our personal Google Apps domain account and want find out the availability of an email address on .me for my wife and me.  I want them to be similar, such as [email protected] or [email protected], but I don't want to setup one first and find out the other is already taken for the same configuration.  E.g., giving me first.last@ and her firstlast@.  Is there any way to check compatibility before setting up the actual .me account?  I suspect if I choose a name and iCloud accepts it, then she chooses the same format and it doesn't accept it, the process can't be undone.  We have a very unique last name so I'm hoping it won't be a problem, but wanted to ask anyway.

    In Mail go to the Mail Preferences and then Accounts
    and create a new gmail account. When you are ready,
    you can delete the Comcast account.
    Thanks for the reply. However, when I go to mail>Pref>Acc, I only have a .mail account listed. Nonetheless, I on occasion have things addressed to me on this computer at comcast. I figure I must have listed it in the process of registering my product, or something like that. I tried to go to Apple.com to review my registration page, but I couldn't manage that. Do you have any other suggestions? Thanks again for your input.

  • How to check the validity of recipient when sending email

    hi Gurus,
    i wanna send email thru class, and i need to know if the email is sent successfully, i can check the email status thru SOST.
    but is there any way to get a return message immediately as soon as  I 'm sending the mail  out.
    Thanks in advance.
    Desmond Yang

    S you are right.
    If you want to validate email id, use table ADR6. Check below code,
    "Get Ship-to-party email address
    DATA: l_f_adrnr TYPE adrnr,
          l_f_mail TYPE ad_smtpadr.
          SELECT SINGLE adrnr FROM vbpa INTO l_f_adrnr        " Get Address number
            WHERE vbeln = vbdkr-vbeln AND
                  parvw = 'WE'.  " 'WE' Ship-to-party
          IF sy-subrc = 0.
            SELECT SINGLE smtp_addr FROM adr6 INTO l_f_mail  " Get Email id from Address number
              WHERE addrnumber = l_f_adrnr.
          ENDIF.
          IF l_f_mail IS INITIAL.
            MESSAGE i503(sbcoms) WITH l_f_mail. " Throw a message saying Recipient is unknown
          ELSE.
            " Code to send mail
         ENDIF.

  • I Have iPad4 and using with Aricel Prepaid 3G SIM, How to check my VAlidity period and balance amount through iPad?. pls help me

    I Have iPad4 and using with Aricel Prepaid 3G SIM, How to check my VAlidity period and balance amount through iPad?. pls help me, M.Kumar, Chennai,
    <Email Edited By Host>

    There are 2 concepts attached to a bank balance. The balance as per your books of accounts and another is the balance maintained with the bank. I believe i need not explain these 2 concepts. These 2 balances can be obtained from Oracle system provided some of prerequsities are met with.
    Balance as per your books - This is nothing but the GL balance available. In order to obtain balances for each bank accounts, it is advised that each bank account should have a separate account code combination. This is achieved generally by having a separate natural account for each bank. The code combination is attached to the cahs account for each bank. By maintaining separate account code combination, the balance in each code combination can be obtained from GL (provided transactions are accounted and posted in GL). These balances represent the balance for each bank according to your books of accounts. You can create an FSG for this purpose and provide the same to the customer, so that they can run the same whenevr they want.
    Balance as per bank - This balance is maintained by oracle in 2 ways - either the bank balance can be manually entered for each bank account for each date (quite cumbersome). Else, while loading the bank statement, the bank balances are also loaded. There are various types of bank balances stored - value dated balance, available balance, float balance etc. Depending on the balances provided by bank along with the bank statement, the bank balance can be recorded in oracle system. After the bank statement is uploaded and balances stored, standard cash management reports are available to query for the bank account balances. In order to view daily movement, the bank statement should be loaded on daily basis.
    Hope this helps.
    Vinit

Maybe you are looking for