Click here to Skip to main content
15,911,646 members
Home / Discussions / Database
   

Database

 
GeneralRe: Multiple values in stored proc parameter Pin
GaryWoodfine 12-Mar-07 5:45
professionalGaryWoodfine 12-Mar-07 5:45 
QuestionUpdating order of DataTables Pin
Satish3212-Mar-07 4:36
Satish3212-Mar-07 4:36 
QuestionData Group on Week: Pin
Shahzad.Aslam12-Mar-07 1:22
Shahzad.Aslam12-Mar-07 1:22 
AnswerRe: Data Group on Week: Pin
Harini N K12-Mar-07 1:43
Harini N K12-Mar-07 1:43 
AnswerRe: Data Group on Week: Pin
Bad Programmer13-Mar-07 15:40
Bad Programmer13-Mar-07 15:40 
GeneralRe: Data Group on Week: Pin
Shahzad.Aslam13-Mar-07 18:50
Shahzad.Aslam13-Mar-07 18:50 
QuestionDynamic sort order in SQL stored proc Pin
GaryWoodfine 12-Mar-07 0:31
professionalGaryWoodfine 12-Mar-07 0:31 
AnswerRe: Dynamic sort order in SQL stored proc Pin
Harini N K12-Mar-07 1:36
Harini N K12-Mar-07 1:36 
QuestionShould i install SQL SERVER on client Machine Pin
dotnethunk11-Mar-07 21:12
dotnethunk11-Mar-07 21:12 
AnswerRe: Should i install SQL SERVER on client Machine Pin
N a v a n e e t h11-Mar-07 21:29
N a v a n e e t h11-Mar-07 21:29 
GeneralRe: Should i install SQL SERVER on client Machine Pin
dotnethunk11-Mar-07 21:41
dotnethunk11-Mar-07 21:41 
GeneralRe: Should i install SQL SERVER on client Machine Pin
N a v a n e e t h11-Mar-07 22:26
N a v a n e e t h11-Mar-07 22:26 
QuestionView Pin
indian14311-Mar-07 20:54
indian14311-Mar-07 20:54 
AnswerRe: View Pin
Sylvester george11-Mar-07 23:50
Sylvester george11-Mar-07 23:50 
AnswerRe: View Pin
Krish - KP12-Mar-07 1:38
Krish - KP12-Mar-07 1:38 
QuestionView Pin
indian14311-Mar-07 20:52
indian14311-Mar-07 20:52 
QuestionCreating Search Index in SQL Server Pin
N a v a n e e t h11-Mar-07 20:32
N a v a n e e t h11-Mar-07 20:32 
AnswerRe: Creating Search Index in SQL Server Pin
mghiassi25-Mar-07 9:44
mghiassi25-Mar-07 9:44 
Questionabout locks Pin
Renuka Reddy11-Mar-07 19:35
Renuka Reddy11-Mar-07 19:35 
AnswerRe: about locks Pin
N a v a n e e t h11-Mar-07 20:38
N a v a n e e t h11-Mar-07 20:38 
QuestionCannot Update..theres an error Pin
blitz2bleach11-Mar-07 11:40
blitz2bleach11-Mar-07 11:40 
AnswerRe: Cannot Update..theres an error Pin
Colin Angus Mackay11-Mar-07 11:49
Colin Angus Mackay11-Mar-07 11:49 
blitz2bleach wrote:
UPDATE UserTable
SET ((UserTable.[password] = [@password])
WHERE ((UserTable.username = [@username])


The SET clause has two sets of opening brackets and only one closing.
The same goes for the WHERE clause.
Also, you encapsulate the parameters in square brackets which mean they will be interpreted as column names.

I would have written your SELECT query without the profusion of brackets. You also encapsulated the parameters in square brackets which mean they will be interpreted as column names.

Try this:
SELECT COUNT(*) AS Num_of_User
FROM UserTable
WHERE username=@username AND pasword=@password; 



AnswerRe: Cannot Update..theres an error Pin
Harini N K11-Mar-07 23:47
Harini N K11-Mar-07 23:47 
QuestionSqlserver 2000 and Sqlserver 2005 Pin
alav11-Mar-07 4:03
alav11-Mar-07 4:03 
AnswerRe: Sqlserver 2000 and Sqlserver 2005 Pin
Jerry Hammond11-Mar-07 5:30
Jerry Hammond11-Mar-07 5:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.