SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Other SQL Server 2008 Topics
 stored procedure problem_urgent!!!
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

adelle
Starting Member

1 Posts

Posted - 11/09/2012 :  16:16:57  Show Profile  Reply with Quote
Create stored procedure for users registration. Procedure accepts two parameters: username and password and introduces these two values into table entitled Users. Table users has three columns: ID, username and password. When activating procedure it is first to check if the user with that username already exists in the table. If exists, the entry does not execute and the procedure returns an error message (number -1). If the user does not exist the entry introduces to database and the procedure returns success message (zero 0).

chadmat
The Chadinator

USA
1974 Posts

Posted - 11/09/2012 :  17:38:10  Show Profile  Visit chadmat's Homepage  Reply with Quote
And what is the problem?

-Chad
Go to Top of Page

TG
Flowing Fount of Yak Knowledge

USA
6062 Posts

Posted - 11/09/2012 :  18:09:27  Show Profile  Reply with Quote
quote:
Originally posted by chadmat

And what is the problem?

-Chad


I think the problem is that adelle is taking a test she didn't study for - hence the urgency.

I don't think there is anyone that could come up such clear and concise requirements that couldn't do the coding themselves. That is why I'm going with test question.

Be One with the Optimizer
TG
Go to Top of Page

tkizer
Almighty SQL Goddess

USA
36895 Posts

Posted - 11/09/2012 :  18:37:23  Show Profile  Visit tkizer's Homepage  Reply with Quote
Oh Adelle, stick to singing.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.04 seconds. Powered By: Snitz Forums 2000