OK, here's the deal. I am trying to write a stored procedure to handle this. It gets passed in a single ntext field that has a list of names to search for, separated by pipes.
ex: "user1|user2|user3|user4"
So the first task is to separate that out somehow.
The second task, which is really the kicker, is to return any of the names on the list that are found in the table.
ex:
Table has three rows, with field named "username".
Row1: user1
Row2: User2
Row3: User3
So the results of the query, using the example above would be a recordset with three rows, user1, user2, and user3. Notice that since user4 was not a value of the 'username' field in the table, it was not returned.
The deal is that it is a table of actively logged in users. Each user has a row in the table. Now I need to take this list of possible users and basically intersect it with the table of logged in users, and return only the matches (i.e. users that are actively logged in off the list given.)
Hints, suggestions, etC?
ex: "user1|user2|user3|user4"
So the first task is to separate that out somehow.
The second task, which is really the kicker, is to return any of the names on the list that are found in the table.
ex:
Table has three rows, with field named "username".
Row1: user1
Row2: User2
Row3: User3
So the results of the query, using the example above would be a recordset with three rows, user1, user2, and user3. Notice that since user4 was not a value of the 'username' field in the table, it was not returned.
The deal is that it is a table of actively logged in users. Each user has a row in the table. Now I need to take this list of possible users and basically intersect it with the table of logged in users, and return only the matches (i.e. users that are actively logged in off the list given.)
Hints, suggestions, etC?