N
nemo
Try to explain this as simple as I can -
User provides a list (names, ID's, or ....) into a text box on a GUI
application...
Based on which options they select I have to look up the corresponding
values from our sql databases.
For example:
user provides:
adamsj
nimmow
dandekp
I need to return
nimmow 1234
dandekp 2341
adamsj <>
where nimmow and dandekp are actual employees and adamsj does not have
an ID
I need to do this for thousands of rows at a time, so I want to avoid
doing a for each with a select statement.
Whats the best way to get this data from SQL? Ive thought about doing
a for each through the list the user provides and appending on a "where
username in ('x','y','z')" to the end of a sql query and then just
getting the results back in a datatable, but then I would not get the
users who were not found in the list..
ideas?
thanks
will
User provides a list (names, ID's, or ....) into a text box on a GUI
application...
Based on which options they select I have to look up the corresponding
values from our sql databases.
For example:
user provides:
adamsj
nimmow
dandekp
I need to return
nimmow 1234
dandekp 2341
adamsj <>
where nimmow and dandekp are actual employees and adamsj does not have
an ID
I need to do this for thousands of rows at a time, so I want to avoid
doing a for each with a select statement.
Whats the best way to get this data from SQL? Ive thought about doing
a for each through the list the user provides and appending on a "where
username in ('x','y','z')" to the end of a sql query and then just
getting the results back in a datatable, but then I would not get the
users who were not found in the list..
ideas?
thanks
will