Click here to Skip to main content
15,888,012 members
Home / Discussions / Database
   

Database

 
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 
AnswerRe: Sqlserver 2000 and Sqlserver 2005 Pin
Paddy Boyd12-Mar-07 1:48
Paddy Boyd12-Mar-07 1:48 
QuestionUse Mssql like Access Pin
Tyler4511-Mar-07 4:38
Tyler4511-Mar-07 4:38 
AnswerRe: Use Mssql like Access Pin
Dave Kreskowiak11-Mar-07 6:40
mveDave Kreskowiak11-Mar-07 6:40 
AnswerRe: Use Mssql like Access Pin
S Douglas12-Mar-07 0:43
professionalS Douglas12-Mar-07 0:43 
AnswerRe: Use Mssql like Access Pin
LongRange.Shooter16-Mar-07 7:38
LongRange.Shooter16-Mar-07 7:38 
Questionstoring many no. of labels n textboxes at one time Pin
manni_n10-Mar-07 7:10
manni_n10-Mar-07 7:10 
QuestionHow to select any field that contain a certain word .. SQL server 2000 Pin
kindman_nb10-Mar-07 6:22
kindman_nb10-Mar-07 6:22 
AnswerRe: How to select any field that contain a certain word .. SQL server 2000 Pin
alexrad11-Mar-07 0:36
alexrad11-Mar-07 0:36 
AnswerRe: How to select any field that contain a certain word .. SQL server 2000 Pin
mghiassi11-Mar-07 0:19
mghiassi11-Mar-07 0:19 
GeneralRe: How to select any field that contain a certain word .. SQL server 2000 Pin
mghiassi11-Mar-07 2:15
mghiassi11-Mar-07 2:15 
GeneralRe: How to select any field that contain a certain word .. SQL server 2000 Pin
kindman_nb11-Mar-07 5:28
kindman_nb11-Mar-07 5:28 
QuestionSQL 2000 Client [modified] Pin
TheEagle10-Mar-07 0:55
TheEagle10-Mar-07 0:55 
AnswerRe: SQL 2000 Client Pin
Dave Kreskowiak11-Mar-07 4:28
mveDave Kreskowiak11-Mar-07 4:28 
GeneralRe: SQL 2000 Client Pin
TheEagle11-Mar-07 5:51
TheEagle11-Mar-07 5:51 

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.