Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
dewacorp.alliances
452 Posts |
Posted - 2007-09-25 : 02:20:10
|
Hi allI'm trying to figure how do I pass from Report Parameter for @MemberName parameter (NON-QUERIED) such as: 'Domain Admins','Local Install','maadmin','Helpdesk Systech','Administrator'My query for dataset is: SELECT id, ComputerCN, GroupName, MemberName, ScanDateFROM tbl_GROUPMEMBERS WITH (NOLOCK)WHERE ComputerCN LIKE '%' + @ComputerCN + '%' AND MemberName NOT IN (@MemberName) ORDER BY ComputerCN ASCHow do I pass this value into IN? It seems that it passed the whole string instead.Thanks |
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2007-09-25 : 12:15:42
|
http://www.sqlteam.com/article/using-a-csv-with-an-in-sub-selectTara KizerMicrosoft MVP for Windows Server System - SQL Serverhttp://weblogs.sqlteam.com/tarad/ |
 |
|
|
|
|