RobHVB6Sql
Programmer
I am writing a stored procedure for a report.
The user is shown a list of all clients in a grid on a form. They then remove the database clients they do not want.
The procedure selects the basic list of clients, then I wish to remove some clients from the working table.
Ie
The varchar is sent like this "231, 240, 250".
Do I need to loop though the working table to delete each personID in turn?
Or can I use @VarChar in the select statement?
Some code examples would be great, thanks in advance.
Rob Hasard
Data Manager -Genetic Services
(VB6 /SQL 7.0)
The user is shown a list of all clients in a grid on a form. They then remove the database clients they do not want.
The procedure selects the basic list of clients, then I wish to remove some clients from the working table.
Ie
Code:
SELECT PersonID, aa, bb, cc from tblWhatever
WHERE PersonID NOT In (@VarChar)
Do I need to loop though the working table to delete each personID in turn?
Or can I use @VarChar in the select statement?
Some code examples would be great, thanks in advance.
Rob Hasard
Data Manager -Genetic Services
(VB6 /SQL 7.0)