Click here to Skip to main content
15,924,507 members
Home / Discussions / Database
   

Database

 
GeneralRe: Retrieving connection string Defined in Web-Config Pin
Guffa4-Dec-06 18:32
Guffa4-Dec-06 18:32 
GeneralRe: Retrieving connection string Defined in Web-Config Pin
mohd imran abdul aziz4-Dec-06 19:02
mohd imran abdul aziz4-Dec-06 19:02 
AnswerRe: Retrieving connection string Defined in Web-Config Pin
Steven J Jowett5-Dec-06 10:42
Steven J Jowett5-Dec-06 10:42 
Questionplease help - database design [modified] Pin
michal.kreslik4-Dec-06 15:09
michal.kreslik4-Dec-06 15:09 
AnswerRe: please help - database design Pin
Colin Angus Mackay4-Dec-06 23:33
Colin Angus Mackay4-Dec-06 23:33 
GeneralRe: please help - database design Pin
michal.kreslik5-Dec-06 3:24
michal.kreslik5-Dec-06 3:24 
QuestionSQL Select query for different combination of arguments Pin
steve_rm4-Dec-06 14:05
steve_rm4-Dec-06 14:05 
AnswerRe: SQL Select query for different combination of arguments Pin
Eric Dahlvang5-Dec-06 9:47
Eric Dahlvang5-Dec-06 9:47 
steve_rm wrote:
My problem is Writing a select query for each of the possible combinations of staff members and the prority.

I could end up writing many many select queries for each combination.


Definitely DO NOT create a select statement for each possible combination. Build your select statement dynamically. When the user clicks the refresh button (or whatever), then put together a criteria list of staff member IDs and priorities.

Select * from Staff inner join StaffTask on Staff.StaffID = StaffTask.StaffID where Staff.StaffID in(1,5,8,12) and StaffTask.Priority in ('urgent','very urgent')

Be sure to check this out:
SQL Injection Attacks and Some Tips on How to Prevent Them[^]

--EricDV Sig---------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters

QuestionReading SQL return messages from .NET Pin
iammudman4-Dec-06 4:49
iammudman4-Dec-06 4:49 
AnswerRe: Reading SQL return messages from .NET Pin
Scott Serl4-Dec-06 6:32
Scott Serl4-Dec-06 6:32 
QuestionParsing very large file-low virtual memory error Pin
amnaahmad4-Dec-06 1:04
amnaahmad4-Dec-06 1:04 
AnswerRe: Parsing very large file-low virtual memory error Pin
Frank Kerrigan4-Dec-06 3:11
Frank Kerrigan4-Dec-06 3:11 
GeneralRe: Parsing very large file-low virtual memory error Pin
amnaahmad4-Dec-06 18:11
amnaahmad4-Dec-06 18:11 
GeneralRe: Parsing very large file-low virtual memory error Pin
amnaahmad4-Dec-06 18:34
amnaahmad4-Dec-06 18:34 
AnswerRe: Parsing very large file-low virtual memory error Pin
Scott Serl5-Dec-06 7:17
Scott Serl5-Dec-06 7:17 
QuestionODBC Connection and Excel Spread Sheet Pin
Cristoff4-Dec-06 0:56
Cristoff4-Dec-06 0:56 
AnswerRe: ODBC Connection and Excel Spread Sheet Pin
Frank Kerrigan4-Dec-06 3:13
Frank Kerrigan4-Dec-06 3:13 
GeneralRe: ODBC Connection and Excel Spread Sheet Pin
Cristoff4-Dec-06 4:04
Cristoff4-Dec-06 4:04 
GeneralRe: ODBC Connection and Excel Spread Sheet Pin
Frank Kerrigan4-Dec-06 5:52
Frank Kerrigan4-Dec-06 5:52 
GeneralRe: ODBC Connection and Excel Spread Sheet Pin
Scott Serl4-Dec-06 6:53
Scott Serl4-Dec-06 6:53 
GeneralRe: ODBC Connection and Excel Spread Sheet Pin
Cristoff5-Dec-06 1:33
Cristoff5-Dec-06 1:33 
GeneralRe: ODBC Connection and Excel Spread Sheet Pin
Scott Serl5-Dec-06 7:35
Scott Serl5-Dec-06 7:35 
QuestionNeed help in writting a sql2000 query Pin
tmiku4-Dec-06 0:07
tmiku4-Dec-06 0:07 
AnswerRe: Need help in writting a sql2000 query Pin
Kamalonline44-Dec-06 20:05
Kamalonline44-Dec-06 20:05 
AnswerRe: Need help in writting a sql2000 query Pin
Polymorpher4-Dec-06 23:54
Polymorpher4-Dec-06 23:54 

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.