Click here to Skip to main content
15,889,096 members
Home / Discussions / Database
   

Database

 
QuestionSOLVED Bumb SQL question - WHER AND syntax? [modified] Pin
Vaclav_14-Jun-08 13:50
Vaclav_14-Jun-08 13:50 
I am getting tired of fighting with VC6.0 SQL syntax.
Why is this failing with - missing operator - error?
What operator?
I just want records which match multiple conditions.

It did not like comma separated WHERE also.

Could somebody please help me.

CString strSQL = "SELECT * FROM [Log] WHERE [Callsign] = Callsign and [Band] = Band ORDER BY [ContactID] DESC ; ";

Thanks for reading
Vaclav

<div class="ForumMod">modified on Sunday, June 15, 2008 12:58 AM</div>
AnswerRe: Bumb SQL question - WHER AND syntax? Pin
Blue_Boy14-Jun-08 18:22
Blue_Boy14-Jun-08 18:22 
GeneralRe: Bumb SQL question - WHER AND syntax? Pin
Vaclav_14-Jun-08 18:43
Vaclav_14-Jun-08 18:43 
GeneralRe: Bumb SQL question - WHER AND syntax? Pin
Blue_Boy14-Jun-08 18:46
Blue_Boy14-Jun-08 18:46 
GeneralRe: Bumb SQL question - WHER AND syntax? Pin
Vaclav_14-Jun-08 19:03
Vaclav_14-Jun-08 19:03 
GeneralRe: Bumb SQL question - WHER AND syntax? Pin
Blue_Boy14-Jun-08 19:04
Blue_Boy14-Jun-08 19:04 
Questionproblem with web user control Pin
sabaMCA14-Jun-08 10:00
sabaMCA14-Jun-08 10:00 
AnswerRe: problem with web user control Pin
Christian Graus14-Jun-08 10:09
protectorChristian Graus14-Jun-08 10:09 
GeneralRe: problem with web user control Pin
Blue_Boy14-Jun-08 10:49
Blue_Boy14-Jun-08 10:49 
QuestionCPU Process on Clinet/Server? Pin
LordCover14-Jun-08 7:11
LordCover14-Jun-08 7:11 
AnswerRe: CPU Process on Clinet/Server? Pin
Hesham Amin14-Jun-08 9:19
Hesham Amin14-Jun-08 9:19 
GeneralRe: CPU Process on Clinet/Server? Pin
LordCover15-Jun-08 1:55
LordCover15-Jun-08 1:55 
Questionhow i can roll back today transaction Pin
wasimsharp13-Jun-08 19:43
wasimsharp13-Jun-08 19:43 
AnswerRe: how i can roll back today transaction Pin
Ashfield15-Jun-08 21:08
Ashfield15-Jun-08 21:08 
AnswerRe: how i can roll back today transaction Pin
Alsvha16-Jun-08 2:11
Alsvha16-Jun-08 2:11 
QuestionProblem using FillSchema Pin
FerJones13-Jun-08 14:23
FerJones13-Jun-08 14:23 
QuestionStored Procedure not working with parameters as sort order Pin
Brendan Vogt13-Jun-08 2:22
Brendan Vogt13-Jun-08 2:22 
AnswerRe: Stored Procedure not working with parameters as sort order Pin
SomeGuyThatIsMe13-Jun-08 2:29
SomeGuyThatIsMe13-Jun-08 2:29 
AnswerRe: Stored Procedure not working with parameters as sort order Pin
Ashfield13-Jun-08 2:37
Ashfield13-Jun-08 2:37 
AnswerRe: Stored Procedure not working with parameters as sort order Pin
Alsvha13-Jun-08 3:03
Alsvha13-Jun-08 3:03 
GeneralRe: Stored Procedure not working with parameters as sort order Pin
Ashfield13-Jun-08 3:56
Ashfield13-Jun-08 3:56 
Questionproblem in creating sql reports in asp.net Pin
prakss13-Jun-08 1:51
prakss13-Jun-08 1:51 
QuestionSQL Query - If condition Pin
aaraaayen12-Jun-08 20:56
aaraaayen12-Jun-08 20:56 
AnswerRe: SQL Query - If condition Pin
Ashfield12-Jun-08 21:08
Ashfield12-Jun-08 21:08 
GeneralRe: SQL Query - If condition Pin
aaraaayen12-Jun-08 21:38
aaraaayen12-Jun-08 21:38 

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.