Click here to Skip to main content
15,919,749 members
Home / Discussions / Database
   

Database

 
AnswerRe: Regarding Usage of datatype 'text' Pin
Mike Dimmick14-Aug-06 0:01
Mike Dimmick14-Aug-06 0:01 
GeneralRe: Regarding Usage of datatype 'text' Pin
H he el el oooo14-Aug-06 3:01
H he el el oooo14-Aug-06 3:01 
AnswerRe: Regarding Usage of datatype 'text' Pin
Mike Dimmick14-Aug-06 12:59
Mike Dimmick14-Aug-06 12:59 
QuestionHow to set array parameter in Sybase ASE stored procedure? Pin
Best Kiluyar13-Aug-06 20:57
Best Kiluyar13-Aug-06 20:57 
Questiongetting data from a parent table Pin
Glen Harvy13-Aug-06 18:46
Glen Harvy13-Aug-06 18:46 
AnswerRe: getting data from a parent table Pin
Eric Dahlvang14-Aug-06 10:32
Eric Dahlvang14-Aug-06 10:32 
GeneralRe: getting data from a parent table [modified] Pin
Glen Harvy14-Aug-06 13:00
Glen Harvy14-Aug-06 13:00 
QuestionReduce multiple SQL statements [modified] Pin
myNameIsRon13-Aug-06 12:34
myNameIsRon13-Aug-06 12:34 
Hi,
I was wondering if I could reduce my SQL statements when using comboboxes for search parameters.
For example:

Combobox with this list:
<Categories
Shirts
Pants
Shoes

Because I don't want a Category search if "<Categories" is selected I have an if statement like this:

if (comboBox_Categories.SelectedIndex != 0)
{
SELECT yada yada WHERE ItemID=8 AND Categories=comboBox_Categories.SelectedValue
}
else
{
SELECT yada yada WHERE ItemID=8
}

I have several ComboBoxes that supply possible parameter variables (that may or may not be used). This creates many possible SQL statements. Any sugestions on how to go about this differently?

Thanks!
Ron





-- modified at 18:37 Sunday 13th August, 2006
AnswerRe: Reduce multiple SQL statements Pin
Colin Angus Mackay13-Aug-06 13:00
Colin Angus Mackay13-Aug-06 13:00 
GeneralRe: Reduce multiple SQL statements Pin
myNameIsRon13-Aug-06 15:26
myNameIsRon13-Aug-06 15:26 
Questionhandling closed page Pin
abonasser13-Aug-06 3:20
abonasser13-Aug-06 3:20 
AnswerRe: handling closed page Pin
Colin Angus Mackay13-Aug-06 3:46
Colin Angus Mackay13-Aug-06 3:46 
QuestionMySQL SQL Dictionary. Pin
NaNg1524113-Aug-06 1:38
NaNg1524113-Aug-06 1:38 
AnswerRe: MySQL SQL Dictionary. Pin
Colin Angus Mackay13-Aug-06 3:19
Colin Angus Mackay13-Aug-06 3:19 
QuestionError in select statement Pin
very_short_life12-Aug-06 4:00
very_short_life12-Aug-06 4:00 
AnswerRe: Error in select statement Pin
Rob Graham12-Aug-06 4:09
Rob Graham12-Aug-06 4:09 
QuestionProblem using reflection for MySQL Pin
Gian Paolo WNA12-Aug-06 0:33
Gian Paolo WNA12-Aug-06 0:33 
AnswerRe: Problem using reflection for MySQL Pin
Colin Angus Mackay12-Aug-06 11:11
Colin Angus Mackay12-Aug-06 11:11 
QuestionSQL Server 2000 Updates Pin
Mridang Agarwalla11-Aug-06 8:33
Mridang Agarwalla11-Aug-06 8:33 
AnswerRe: SQL Server 2000 Updates Pin
Colin Angus Mackay12-Aug-06 11:21
Colin Angus Mackay12-Aug-06 11:21 
AnswerRe: SQL Server 2000 Updates Pin
Mike Dimmick12-Aug-06 19:48
Mike Dimmick12-Aug-06 19:48 
QuestionDynamic Datagrid Pin
neerajwa11-Aug-06 5:03
neerajwa11-Aug-06 5:03 
QuestionProcedure or function has too many arguments specified [modified] Pin
R. A. Abbasi11-Aug-06 2:04
R. A. Abbasi11-Aug-06 2:04 
AnswerRe: Procedure or function has too many arguments specified Pin
mr_lasseter11-Aug-06 6:31
mr_lasseter11-Aug-06 6:31 
GeneralRe: Procedure or function has too many arguments specified Pin
R. A. Abbasi11-Aug-06 9:28
R. A. Abbasi11-Aug-06 9:28 

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.