Click here to Skip to main content
15,902,299 members
Home / Discussions / Database
   

Database

 
GeneralRe: T-QL Problem Pin
Colin Angus Mackay4-Jul-05 22:46
Colin Angus Mackay4-Jul-05 22:46 
You should put a breakpoint at the start of this code and watch the CommandText being built up. You will then see where your logic error is.

You are adding an AND immediately after the WHERE and this is causing a syntax error. WHERE AND( styleID = @styleID ) is not valid. You need to check in your code whether a filter expression has already been placed in the WHERE clause. Obviously, for StyleID you don't need to check as this is the first filter expression, so nothing comes before it. You can remove the boolian+ (by the way that should be spelt "boolean") in the line that adds the StyleID to the SQL Statement.

Does this help?


My: Blog | Photos
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More


GeneralRe: T-QL Problem Pin
WDI5-Jul-05 3:29
WDI5-Jul-05 3:29 
GeneralRe: T-QL Problem Pin
Colin Angus Mackay5-Jul-05 3:38
Colin Angus Mackay5-Jul-05 3:38 
GeneralLDAP Frontend to MSSQL Pin
MrEyes4-Jul-05 2:13
MrEyes4-Jul-05 2:13 
GeneralIMPORT ACCESS FROM SQL SERVER 2000 Pin
RajithCAlwis4-Jul-05 0:47
RajithCAlwis4-Jul-05 0:47 
GeneralRe: IMPORT ACCESS FROM SQL SERVER 2000 Pin
Rob Graham4-Jul-05 13:23
Rob Graham4-Jul-05 13:23 
GeneralRe: IMPORT ACCESS FROM SQL SERVER 2000 Pin
RajithCAlwis4-Jul-05 17:02
RajithCAlwis4-Jul-05 17:02 
GeneralParadox lock Pin
Screwtape4-Jul-05 0:29
Screwtape4-Jul-05 0:29 
GeneralRe: Paradox lock Pin
Rob Graham4-Jul-05 13:25
Rob Graham4-Jul-05 13:25 
GeneralRe: Paradox lock Pin
Screwtape4-Jul-05 21:47
Screwtape4-Jul-05 21:47 
GeneralRe: Paradox lock Pin
Rob Graham5-Jul-05 6:01
Rob Graham5-Jul-05 6:01 
GeneralFilterData Set eproblem VB.NET Pin
monageasmear3-Jul-05 21:44
monageasmear3-Jul-05 21:44 
GeneralRe: FilterData Set eproblem VB.NET Pin
asithangae4-Jul-05 20:57
asithangae4-Jul-05 20:57 
GeneralUnicode Support Pin
Mr. Naveed Butt3-Jul-05 20:44
professionalMr. Naveed Butt3-Jul-05 20:44 
GeneralRe: Unicode Support Pin
Colin Angus Mackay3-Jul-05 21:17
Colin Angus Mackay3-Jul-05 21:17 
GeneralRe: Unicode Support Pin
Mr. Naveed Butt3-Jul-05 22:05
professionalMr. Naveed Butt3-Jul-05 22:05 
GeneralRe: Unicode Support Pin
Colin Angus Mackay3-Jul-05 22:38
Colin Angus Mackay3-Jul-05 22:38 
GeneralRe: Unicode Support Pin
Mr. Naveed Butt3-Jul-05 23:37
professionalMr. Naveed Butt3-Jul-05 23:37 
GeneralMYSQL HAVING WITH INNER JOIN Pin
RajithCAlwis3-Jul-05 20:32
RajithCAlwis3-Jul-05 20:32 
Questionis it an average or NOT? Pin
WetRivrRat3-Jul-05 13:06
WetRivrRat3-Jul-05 13:06 
AnswerRe: is it an average or NOT? Pin
Colin Angus Mackay3-Jul-05 20:40
Colin Angus Mackay3-Jul-05 20:40 
GeneralRe: is it an average or NOT? Pin
WetRivrRat4-Jul-05 5:25
WetRivrRat4-Jul-05 5:25 
GeneralRe: is it an average or NOT? Pin
Colin Angus Mackay4-Jul-05 5:31
Colin Angus Mackay4-Jul-05 5:31 
GeneralRe: is it an average or NOT? Pin
WetRivrRat4-Jul-05 6:24
WetRivrRat4-Jul-05 6:24 
GeneralRe: is it an average or NOT? Pin
Colin Angus Mackay4-Jul-05 6:55
Colin Angus Mackay4-Jul-05 6:55 

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.