{"id":799,"date":"2008-09-26T23:06:00","date_gmt":"2008-09-26T23:06:00","guid":{"rendered":"http:\/\/mooredynasty.net\/?p=799"},"modified":"2014-12-18T23:06:18","modified_gmt":"2014-12-18T23:06:18","slug":"sql-temp-table-nested-proc-calls","status":"publish","type":"post","link":"https:\/\/mooredynasty.net\/index.php\/2008\/09\/sql-temp-table-nested-proc-calls\/","title":{"rendered":"SQL Temp Table, Nested Proc Calls"},"content":{"rendered":"<p>CREATE PROCEDURE [dbo].[marctest2]   <br \/>AS    <br \/>SET NOCOUNT ON    <br \/>INSERT INTO #marc VALUES (4, &#8216;Test 4&#8217;)    <br \/>INSERT INTO #marc VALUES (5, &#8216;Test 5&#8217;)    <br \/>INSERT INTO #marc VALUES (6, &#8216;Test 6&#8217;)    <br \/>GO    <br \/>CREATE PROCEDURE [dbo].[marctest1]    <br \/>AS    <br \/>SET NOCOUNT ON    <br \/>CREATE TABLE #marc    <br \/>(    <br \/>&#160;&#160;&#160; id int,    <br \/>&#160;&#160;&#160; data varchar(10)    <br \/>)    <br \/>INSERT INTO #marc VALUES (1, &#8216;Test 1&#8217;)    <br \/>INSERT INTO #marc VALUES (2, &#8216;Test 2&#8217;)    <br \/>INSERT INTO #marc VALUES (3, &#8216;Test 3&#8217;)    <br \/>exec marctest2    <br \/>INSERT INTO #marc VALUES (7, &#8216;Test 7&#8217;)    <br \/>INSERT INTO #marc VALUES (8, &#8216;Test 8&#8217;)    <br \/>select * from #marc    <br \/>go    <br \/>EXEC [dbo].[marctest1]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CREATE PROCEDURE [dbo].[marctest2] AS SET NOCOUNT ON INSERT INTO #marc VALUES (4, &#8216;Test 4&#8217;) INSERT INTO #marc VALUES (5, &#8216;Test 5&#8217;) INSERT INTO #marc VALUES (6, &#8216;Test 6&#8217;) GO CREATE PROCEDURE [dbo].[marctest1] AS SET NOCOUNT ON CREATE TABLE #marc ( &#160;&#160;&#160; id int, &#160;&#160;&#160; data varchar(10) ) INSERT INTO #marc &hellip; <\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-799","post","type-post","status-publish","format-standard","hentry","category-development"],"_links":{"self":[{"href":"https:\/\/mooredynasty.net\/index.php\/wp-json\/wp\/v2\/posts\/799","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mooredynasty.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mooredynasty.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mooredynasty.net\/index.php\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/mooredynasty.net\/index.php\/wp-json\/wp\/v2\/comments?post=799"}],"version-history":[{"count":1,"href":"https:\/\/mooredynasty.net\/index.php\/wp-json\/wp\/v2\/posts\/799\/revisions"}],"predecessor-version":[{"id":800,"href":"https:\/\/mooredynasty.net\/index.php\/wp-json\/wp\/v2\/posts\/799\/revisions\/800"}],"wp:attachment":[{"href":"https:\/\/mooredynasty.net\/index.php\/wp-json\/wp\/v2\/media?parent=799"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mooredynasty.net\/index.php\/wp-json\/wp\/v2\/categories?post=799"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mooredynasty.net\/index.php\/wp-json\/wp\/v2\/tags?post=799"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}