<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlserver.ro/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>T-SQL</title><link>http://sqlserver.ro/forums/15/ShowForum.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>Re: SELECT pe o tabela (variabila locala)</title><link>http://sqlserver.ro/forums/thread/1783.aspx</link><pubDate>Tue, 13 Feb 2007 10:56:01 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1783</guid><dc:creator>Alex</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1783.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=1783</wfw:commentRss><description>&lt;P&gt;intradevar&amp;nbsp; @gTemp_table NULL&lt;/P&gt;
&lt;P&gt;multumesc mult.....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Re: SELECT pe o tabela (variabila locala)</title><link>http://sqlserver.ro/forums/thread/1782.aspx</link><pubDate>Tue, 13 Feb 2007 10:40:58 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1782</guid><dc:creator>rsocol</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1782.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=1782</wfw:commentRss><description>&lt;p&gt;Hmm... poate @qTemp_table nu conţine numele tabelei (e NULL) ?&lt;/p&gt;&lt;p&gt;Încearcă un SELECT @strSQL sau un PRINT @strSQL înainte de EXEC.&lt;br&gt;&lt;/p&gt;&lt;p&gt;Răzvan&lt;/p&gt;</description></item><item><title>SELECT pe o tabela (variabila locala)</title><link>http://sqlserver.ro/forums/thread/1780.aspx</link><pubDate>Tue, 13 Feb 2007 10:31:44 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:1780</guid><dc:creator>Alex</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/1780.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=1780</wfw:commentRss><description>&lt;P&gt;salut, revin cu o intrebare&lt;/P&gt;
&lt;P&gt;de ce daca rulez:&lt;/P&gt;
&lt;P&gt;set @strSQL='select * from&amp;nbsp;TempTable order by startTime'&lt;BR&gt;exec sp_executesql @strSQL&lt;/P&gt;
&lt;P&gt;imi afiseaza tot ce contine tabela respectiva&lt;/P&gt;
&lt;P&gt;iar daca vreau sa rulez astfel:&lt;/P&gt;
&lt;P&gt;set @strSQL='select * from &lt;A href="mailto:'+@gTemp_table+'"&gt;'+@gTemp_table+'&lt;/A&gt; order by startTime'&lt;BR&gt;exec sp_executesql @strSQL&lt;/P&gt;
&lt;P&gt;nu-mi afiseaza nimic dar imi spune &lt;/P&gt;
&lt;P&gt;The command(s) completed successfully.&lt;/P&gt;
&lt;P&gt;cum pot afisa ce contine respectiva tabela daca ea este o variabila locala&lt;/P&gt;
&lt;P&gt;multumesc&lt;/P&gt;</description></item></channel></rss>