<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Qdabra qRules</title><link>https://www.infopathdev.com:443/forums/131.aspx</link><description>qRules adds support to your InfoPath  forms. With qRules, you can add features to your form that require code, but without having to write it. </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How do I use ModifySqlQuery to pass 2 separate values to 2 separate WHERE clauses?</title><link>https://www.infopathdev.com:443/forums/thread/105480.aspx</link><pubDate>Thu, 11 Feb 2016 20:41:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105480</guid><dc:creator>Mfranco</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/105480.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=105480</wfw:commentRss><description>My Dear.. I am already implementing that exact scenario.  Rethought my process. I believe I have it nailed on this front. Working on the SSIS package now. 

Thanks again!</description></item><item><title>Re: How do I use ModifySqlQuery to pass 2 separate values to 2 separate WHERE clauses?</title><link>https://www.infopathdev.com:443/forums/thread/105479.aspx</link><pubDate>Thu, 11 Feb 2016 20:24:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105479</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/105479.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=105479</wfw:commentRss><description>Yeah, anything but IE doesn&amp;#39;t seem to work too well with the forum. Sorry about that. I think instead of using ModifySqlQuery, you should use ExecuteSqlQuery, and I think you should create a stored procedure and use ExecuteSqlQuery to pass your parameters into that. Set implicit_transactions to off in your stored proc.</description></item><item><title>Re: How do I use ModifySqlQuery to pass 2 separate values to 2 separate WHERE clauses?</title><link>https://www.infopathdev.com:443/forums/thread/105477.aspx</link><pubDate>Thu, 11 Feb 2016 18:40:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105477</guid><dc:creator>Mfranco</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/105477.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=105477</wfw:commentRss><description>I tried to separate my code above from my actual comments. But none of the options for formatting are available and it&amp;#39;s removing my hard returns, tabs and spaces.</description></item><item><title>How do I use ModifySqlQuery to pass 2 separate values to 2 separate WHERE clauses?</title><link>https://www.infopathdev.com:443/forums/thread/105476.aspx</link><pubDate>Thu, 11 Feb 2016 18:35:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105476</guid><dc:creator>Mfranco</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/105476.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=105476</wfw:commentRss><description>DECLARE @emps AS TABLE (evc_code varchar(max)) INSERT INTO @emps (evc_code)
     SELECT DISTINCT evc_code
     FROM            prj_detail
     WHERE        (fiscal_year = @year) AND (evc_type_code = &amp;#39;E&amp;#39;) AND (rev_type_code = &amp;#39;01&amp;#39;) 
DECLARE @names AS TABLE (emp_code varchar(max), emp_name varchar(max))
      INSERT        
       INTO               @names (emp_code, emp_name)
                                    SELECT        emp_info.emp_code, emp_info.emp_name
                                     FROM            emp_info INNER JOIN
                                                              emp_group_map ON 
                                                              emp_info.emp_code = emp_group_map.emp_code INNER JOIN
                                                              emp_group_code ON 
                                                              emp_group_map.rsrc_group_code = emp_group_code.emp_group_code
                                     WHERE        (emp_group_code.emp_group_name = @BU) 
                                                                  SELECT        a.*
                                                                   FROM            @names a INNER JOIN
                                                                                            @emps b ON b.evc_code = a.emp_code 



The above is my query. I need to supply the @year and @BU for my where clauses.  These values will be passed from an SSRS report. I&amp;#39;ve used this command before with a single parameter in a Single WHERE clause.

But how do I go about using it for 2 separate values in 2 separate WHERE clauses in the same Query.  

I&amp;#39;m on the latest version of qRules.</description></item></channel></rss>