<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[שימוש בטבלה זמנית בתוך פונקציה SQL SERVER]]></title><description><![CDATA[<p dir="rtl">אני רואה שבתוך פונקציה צריך להצהיר על טבלה זמנית במפורש עם כל השדות , ואין אפשרות לעשות דבר כזה:</p>
<pre><code>select * into #table from TableName 
	where ID = @ID
</code></pre>
<p dir="rtl">במקום זה אני צריך להכריז על טבלה עם כל השדות, איזה מין היגיון יש בזה???</p>
<p dir="rtl">בטריגרים אגב כאן אפשר לעשות דבר כזה.</p>
<p dir="rtl">עריכה: למה אין אפשרות להצהיר על שאילתה פשוטה, כלומר לעשות משפט סלקט, שתהיה לי גישה אליו בכל הקוד שאחר כך. למה צריך טבלה זמנית ומשפט אינסרט וכולי??</p>
<p dir="rtl"><em>פורסם במקור בפורום CODE613 ב04/02/2014 13:41 (+02:00)</em></p>
]]></description><link>https://tchumim.com/topic/322/שימוש-בטבלה-זמנית-בתוך-פונקציה-sql-server</link><generator>RSS for Node</generator><lastBuildDate>Fri, 16 Oct 2026 05:00:44 GMT</lastBuildDate><atom:link href="https://tchumim.com/topic/322.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 29 Jan 2018 10:40:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to שימוש בטבלה זמנית בתוך פונקציה SQL SERVER on Mon, 29 Jan 2018 10:40:42 GMT]]></title><description><![CDATA[<p dir="rtl">לא שמתי לב שכתבת "בתוך פונקציה".<br />
אמת, אי אפשר.</p>
<p dir="rtl"><em>פורסם במקור בפורום CODE613 ב05/02/2014 12:15 (+02:00)</em></p>
]]></description><link>https://tchumim.com/post/2151</link><guid isPermaLink="true">https://tchumim.com/post/2151</guid><dc:creator><![CDATA[dovid]]></dc:creator><pubDate>Mon, 29 Jan 2018 10:40:42 GMT</pubDate></item><item><title><![CDATA[Reply to שימוש בטבלה זמנית בתוך פונקציה SQL SERVER on Mon, 29 Jan 2018 10:40:42 GMT]]></title><description><![CDATA[<p dir="rtl">החי מכחיש את החי???<br />
מה נהיה?</p>
<pre><code>select * into #table from ActivitiesTemplates  
    where ID = @teplateID;
</code></pre>
<p dir="rtl">זה הקוד בלי עיוותים, וזאת ההודעה:</p>
<p dir="auto">Msg 2772, Level 16, State 1, Procedure GetDateForActivityTemplate, Line 18<br />
Cannot access temporary tables from within a function.</p>
<p dir="rtl"><em>פורסם במקור בפורום CODE613 ב04/02/2014 16:33 (+02:00)</em></p>
]]></description><link>https://tchumim.com/post/2150</link><guid isPermaLink="true">https://tchumim.com/post/2150</guid><dc:creator><![CDATA[ארכיטקט]]></dc:creator><pubDate>Mon, 29 Jan 2018 10:40:42 GMT</pubDate></item><item><title><![CDATA[Reply to שימוש בטבלה זמנית בתוך פונקציה SQL SERVER on Mon, 29 Jan 2018 10:40:42 GMT]]></title><description><![CDATA[<p dir="rtl">אתה טועה, אצלי עובד בכל אופן.</p>
<p dir="rtl"><em>פורסם במקור בפורום CODE613 ב04/02/2014 16:00 (+02:00)</em></p>
]]></description><link>https://tchumim.com/post/2149</link><guid isPermaLink="true">https://tchumim.com/post/2149</guid><dc:creator><![CDATA[dovid]]></dc:creator><pubDate>Mon, 29 Jan 2018 10:40:42 GMT</pubDate></item></channel></rss>