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 8667957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:05:48+00:00 2026-06-12T18:05:48+00:00

Basically when I register (Registration details goes to Login table), then this data goes

  • 0

Basically when I register (Registration details goes to Login table), then this data goes to 2 tables:

  1. Login table
  2. Registration table(Specific)

Using @Attrib I check which data needs to go to which table. But here I am getting an error near the first else part.

The error is:

Incorrect syntax near ‘@Attrib’ expecting SELECT or ,'(‘

Here is the code:

ALTER procedure [dbo].[Registration_SP]
(
    @Email varchar(50),
    @Password varchar(50),
    @Repassword varchar(50),
    @Attrib varchar(50) 
)
AS

BEGIN

    Insert into Login (Email,Password,Repassword,Attrib)
    values(@Email,@Password,@Repassword,@Attrib)

    IF (@Attrib = 'Student')
    BEGIN
        Insert into StudentReg
            (StudentId,FirstName,LastName,Gender,Address1,Address2,Address3,
             LandPhone,MobilePhone,Budget,IsFinancialSupport,CourseName,
             IsJobSeeker,Country,Region,IsSupportActive,RegDate,ImagePath,
             ShortCode)
        Values(@Email,'','','','','','','','','','','','','','','','','','')
    END
    ELSE (@Attrib = 'Financial Supporter')
    BEGIN
        Insert into SupporterReg   
        (SupporterId,SupporterName,University,ContactNo,StudentLocation,RegDate,
         ImagePath,ShortCode)
        Values(@Email,'','','','','','','')
    END

Further clarification, I have atttached the image below:

enter image description here

  • 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-06-12T18:05:49+00:00Added an answer on June 12, 2026 at 6:05 pm

    Your ELSE is missing IF afterwards:

    i.e.

    ELSE (@Attrib = 'Financial Supporter') 
    

    should be

    ELSE IF (@Attrib = 'Financial Supporter') 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, I want to redirect paths like this: /index.php /register /login.html But not like
I'd like to allow users the option to register using their Twitter account. Basically,
I need the users to register to my website with login and password. basically
I have the following registration builder.Register<Func<Type, IRequestHandler>>( c => request => (IRequestHandler)c.Resolve(request)); Basically I
Basically, I have a CodeIgniter site that registers users through this url: http://website.com/user/register/1 Unfortunately,
I installed OpenScholar in my domain: http://scholar.web Basically, when someone register for an account,
Basically I want to check the extended permissions the user has granted my app.
Basically I have a large set of data in excel, and I was wondering
Basically, I have a list of delivery checkboxes one for deliver to this address
I run a SaaS that allows free trials. Basically if you register you get

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.