<?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>SQL Database Integration</title><link>https://www.infopathdev.com:443/forums/47.aspx</link><description>For questions concerning issues in the integration of SQL and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Updating tables / trigger</title><link>https://www.infopathdev.com:443/forums/thread/19518.aspx</link><pubDate>Wed, 02 May 2007 15:43:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19518</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19518.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=19518</wfw:commentRss><description>Hi,
&lt;br /&gt;&lt;br /&gt;
I think you will need to provide a little more information on your schema, both on the InfoPath and Database ends.  If you are having trouble with how your database trigger is behaving I would reccommend hooking up the SQL Server Profiler so that you can watch what exactly is happening and when.  This will also allow you to see any error messages that might be getting buried.</description></item><item><title>Updating tables / trigger</title><link>https://www.infopathdev.com:443/forums/thread/16877.aspx</link><pubDate>Tue, 27 Mar 2007 09:50:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:16877</guid><dc:creator>Jibi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/16877.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=16877</wfw:commentRss><description>Hi&lt;br /&gt;&lt;br /&gt;I've a form including an extensible section wich includes a extensible array.&lt;br /&gt;Section = Global Costs of project&lt;br /&gt;Array = details by year&lt;br /&gt;&lt;br /&gt;My form is based on 2 SQL tables (global and détails) which are linked&lt;br /&gt;&lt;br /&gt;I create a trigger udpating a third table depending value of one field of the global table&lt;br /&gt;&lt;br /&gt;***********************&lt;br /&gt;CREATE TRIGGER [InsertSatcli] ON [dbo].[CoutsINF]&lt;br /&gt;AFTER INSERT&lt;br /&gt;AS&lt;br /&gt;Declare @choix bit, @id int,@NumWic nvarchar (50),@rap int,@domRap int,@com nvarchar(300),@idcouts int,@CpInfo nvarchar(50)&lt;br /&gt;select @id = (select idlotprojet from Inserted)&lt;br /&gt;select @idcouts=(select IdCoutsINF from Inserted)&lt;br /&gt;select @choix = (select ValPvDef from Inserted)&lt;br /&gt;select @NumWIc=(select NumWic from inserted)&lt;br /&gt;select @com=(select comments from inserted)&lt;br /&gt;select @CpInfo=(select NomCpEds from inserted)&lt;br /&gt;select @rap=(select distinct coderap from projet,lotprojet where projet.codeprj=lotprojet.codeprj and lotprojet.idlotprojet=@id)&lt;br /&gt;select @domRap=(select distinct CodeDomaineRAP from projet,lotprojet where projet.codeprj=lotprojet.codeprj and lotprojet.idlotprojet=@id)&lt;br /&gt;&lt;br /&gt;If @choix = 1 &lt;br /&gt;	Begin&lt;br /&gt;	insert into SatcliPrj (IdCoutsINF,NumWic,CodeRap,ValidSaisie,CodeDomaineRap,comments,CPInfo)&lt;br /&gt;		values (@idcouts ,@NumWic,@rap,0,@domRap,@com,@CPInfo)&lt;br /&gt;&lt;br /&gt;	End&lt;br /&gt;*****************&lt;br /&gt;Pb : &lt;br /&gt;When the trigger is not executed, global and details tables are correctly updated&lt;br /&gt;&lt;br /&gt;When the trigger is executed, my third table is correctly updated but not the table of details by year.&lt;br /&gt;I've no error msg&lt;br /&gt;it seems not continuing updating after excuting the trigger&lt;br /&gt;&lt;br /&gt;Thanks for help and sorry for my english&lt;br /&gt;</description></item></channel></rss>