Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.databases.ms-sqlserver > #1311

Re: explain? Execution plans?

Path csiph.com!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From Erland Sommarskog <esquel@sommarskog.se>
Newsgroups comp.databases.ms-sqlserver
Subject Re: explain? Execution plans?
Date Thu, 20 Sep 2012 23:36:52 +0200
Organization Erland Sommarskog
Lines 24
Message-ID <XnsA0D4F0382B318Yazorman@127.0.0.1> (permalink)
References <c42ab89c-f4c1-4d85-aa89-c061471436a0@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252
Content-Transfer-Encoding 8bit
Injection-Info mx04.eternal-september.org; posting-host="9c1143bfab35549403b85d70ea1a57d8"; logging-data="23411"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18EwV8KLuu0+AFc484cjc4p"
User-Agent Xnews/2006.08.24 Mime-proxy/2.1.c.0 (Win32)
Cancel-Lock sha1:MN3pZ+GA2f/PA8NonFv3nK4ujbg=
Xref csiph.com comp.databases.ms-sqlserver:1311

Show key headers only | View raw


björn lundin (b.f.lundin@gmail.com) writes:
> In others databases, I can run
> explain (some query)
> and get a execution plan.
> 
> We have a tool that parses source code for
> sql statements and runs explain on them.
> By doing this, we get
> * the execution plan (obviously)
> * but also a receipt that the embedded sqls are valid.
 
Any of

SET SHOWPLAN_TEXT ON
SET SHOWPLAN_ALL ON
SET SHOWPLAN_XML ON

-- 
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx

Back to comp.databases.ms-sqlserver | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

explain? Execution plans? björn lundin <b.f.lundin@gmail.com> - 2012-09-20 02:05 -0700
  Re: explain? Execution plans? Erland Sommarskog <esquel@sommarskog.se> - 2012-09-20 23:36 +0200
    Re: explain? Execution plans? björn lundin <b.f.lundin@gmail.com> - 2012-09-21 01:12 -0700

csiph-web