Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

check user already in Database before insert new user

Status
Not open for further replies.

truonglv

Programmer
Jul 6, 2007
1
VN
I'm writing a register page use ASP (javascript) and Microsoft SQL Server 2000, but I don't know to check user (username and email) already in database before insert new user (my database is Customers).

Please help me code for this.

Thanks.
 
What have you tried so far?

-George

"the screen with the little boxes in the window." - Moron
 
If your T-SQL skills are better than your ASP, perhaps a single stored procedure would be the easiest way to do it. The logic could first query for a match and then conditionally INSERT or UPDATE depending on the query results.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top