Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

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

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).

The Chadinator

1974 Posts

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

Go to Top of Page

Flowing Fount of Yak Knowledge

6065 Posts

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

And what is the problem?


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
Go to Top of Page

Almighty SQL Goddess

38200 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

Subscribe to my blog
Go to Top of Page
  Previous Topic Topic Next 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.02 seconds. Powered By: Snitz Forums 2000