<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: ModifySQLQuery</title><link>https://www.infopathdev.com:443/forums/thread/84043.aspx</link><pubDate>Wed, 31 Oct 2012 14:59:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:84043</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/84043.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=84043</wfw:commentRss><description>&lt;p&gt;Hi - have you put the Qdabra Rules error node on your form so you can see if there is an error? Are you just running the command, and not re-executing the data connection afterward? From the user guide:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;This command will allow you to add a WHERE clause to an existing SQL data connection. &lt;strong&gt;It will execute the SQL query after adding the WHERE clause&lt;/strong&gt;.&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>ModifySQLQuery</title><link>https://www.infopathdev.com:443/forums/thread/84040.aspx</link><pubDate>Wed, 31 Oct 2012 02:14:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:84040</guid><dc:creator>SoftEx</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/84040.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=84040</wfw:commentRss><description>Hi

I have the following command on a change fields value:

concat(&amp;quot;ModifySqlQuery /dsname=SchoolPositions /where= WHERE hr_wdep_code =&amp;quot;, .) 

The problem is that it still return ALL the data in the table and IGNORE the where clause. On closer inspection under SQL Profiler I found the following:


SELECT     hr_wdep_code, hr_posn_numb, hr_posn_desc FROM         v_SchoolPosition  WHERE (hr_wdep_code =7036) AND  1 = 0 
go
IF @@TRANCOUNT &amp;gt; 0 ROLLBACK TRAN
go
set implicit_transactions off 
go
SELECT     hr_wdep_code, hr_posn_numb, hr_posn_desc FROM         v_SchoolPosition  WHERE hr_wdep_code =7036
go
set implicit_transactions on SET NO_BROWSETABLE ON
go
SELECT     hr_wdep_code, hr_posn_numb, hr_posn_desc FROM         v_SchoolPosition WHERE 1 = 0 
go
IF @@TRANCOUNT &amp;gt; 0 ROLLBACK TRAN
go
set implicit_transactions off 
go
SELECT     hr_wdep_code, hr_posn_numb, hr_posn_desc FROM         v_SchoolPosition
go

I&amp;#39;m not sure what I did wrong nor how to fix it :(, does anybody have any idea?

Your help is much appreciated

Regards
Peter</description></item></channel></rss>