<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Cannot call methods on %ls.</title>
	<atom:link href="http://www.sql-server-performance.com/2009/cannot-call-methods/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sql-server-performance.com/2009/cannot-call-methods/</link>
	<description>SQL Server Performance Tuning</description>
	<lastBuildDate>Fri, 17 May 2013 13:31:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Frank Kalis</title>
		<link>http://www.sql-server-performance.com/2009/cannot-call-methods/#comment-1083</link>
		<dc:creator>Frank Kalis</dc:creator>
		<pubDate>Wed, 21 Dec 2011 14:09:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.sql-server-performance.com/?=1792#comment-1083</guid>
		<description><![CDATA[Looks like this
&lt;code&gt;deleted.Total.received&lt;/code&gt;
should really be
&lt;code&gt;deleted.Total_received&lt;/code&gt;
Note the underscore instead of the dot.]]></description>
		<content:encoded><![CDATA[<p>Looks like this<br />
<code>deleted.Total.received</code><br />
should really be<br />
<code>deleted.Total_received</code><br />
Note the underscore instead of the dot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dishant shah</title>
		<link>http://www.sql-server-performance.com/2009/cannot-call-methods/#comment-986</link>
		<dc:creator>Dishant shah</dc:creator>
		<pubDate>Sat, 10 Dec 2011 06:52:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.sql-server-performance.com/?=1792#comment-986</guid>
		<description><![CDATA[will you tell me where i am laging in below example
error is &#039;can not call method on numeric&#039;
error number is same...
the trigger is
ALTER TRIGGER history_update
ON dbo.Sale_Bill
FOR UPDATE/* INSERT, UPDATE, DELETE */
AS
BEGIN
if update (Total_received)
begin
update PendingBillPaidTransactionHistory
 set PendingBillPaidTransactionHistory.Amount = PendingBillPaidTransactionHistory.Amount + inserted.Total_received - deleted.Total.received
          from inserted, deleted
          where PandingBillPaidTransactionHistory.BillID = Sale_Bill.Bill_id
          and inserted.Bill_id = deleted.Bill_id
		update ReceiptTransaction
		set ReceiptTransaction.TransactionAmount = ReceiptTransaction.TransactionAmount + inserted.Total_received - deleted.Total.received
		from inserted, deleted
		where ReceiptTransaction.TID = (select TID from PandingBillPaidTransactionHistory where PandingBillPaidTransactionHistory.BillID = Sale_Bill.Bill_id)
		and inserted.Bill_id = deleted.Bill_id
end
end]]></description>
		<content:encoded><![CDATA[<p>will you tell me where i am laging in below example<br />
error is &#8216;can not call method on numeric&#8217;<br />
error number is same&#8230;</p>
<p>the trigger is<br />
ALTER TRIGGER history_update<br />
ON dbo.Sale_Bill<br />
FOR UPDATE/* INSERT, UPDATE, DELETE */<br />
AS<br />
BEGIN<br />
if update (Total_received)<br />
begin </p>
<p>update PendingBillPaidTransactionHistory<br />
 set PendingBillPaidTransactionHistory.Amount = PendingBillPaidTransactionHistory.Amount + inserted.Total_received &#8211; deleted.Total.received<br />
          from inserted, deleted<br />
          where PandingBillPaidTransactionHistory.BillID = Sale_Bill.Bill_id<br />
          and inserted.Bill_id = deleted.Bill_id</p>
<p>		update ReceiptTransaction<br />
		set ReceiptTransaction.TransactionAmount = ReceiptTransaction.TransactionAmount + inserted.Total_received &#8211; deleted.Total.received<br />
		from inserted, deleted<br />
		where ReceiptTransaction.TID = (select TID from PandingBillPaidTransactionHistory where PandingBillPaidTransactionHistory.BillID = Sale_Bill.Bill_id)<br />
		and inserted.Bill_id = deleted.Bill_id</p>
<p>end<br />
end</p>
]]></content:encoded>
	</item>
</channel>
</rss>
