July 7, 2016 at 8:38 pm
Comments posted to this topic are about the item EXEC and EXECUTE
July 8, 2016 at 3:40 am
This was removed by the editor as SPAM
July 8, 2016 at 5:25 am
Yes, it was an easy one. I admit I was looking for the trick.
July 8, 2016 at 5:52 am
Ed Wagner (7/8/2016)
Yes, it was an easy one. I admit I was looking for the trick.
+1 😉
Thanks Steve and happy weekend to all.
July 8, 2016 at 1:19 pm
George Vobr (7/8/2016)
Ed Wagner (7/8/2016)
Yes, it was an easy one. I admit I was looking for the trick.+1 😉
Thanks Steve and happy weekend to all.
+1 Yes, I even checked BoL...
July 8, 2016 at 2:02 pm
Ed Wagner (7/8/2016)
Yes, it was an easy one. I admit I was looking for the trick.
Me, too. I read it half a dozen times to make sure I wasn't missing something.
Thanks, Steve.
July 11, 2016 at 7:00 am
Depends if you're talking about the EXEC() function or the EXEC abbreviated version of EXECUTE. As I recall the EXEC() function can't see any variables declared in the calling session because it executes in a separate session. EXEC/EXECUTE operate in the same session they are called in and can see those variables.
There are no facts, only interpretations.
Friedrich Nietzsche
July 12, 2016 at 6:38 am
Easy one. 😀
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
July 12, 2016 at 12:49 pm
Easy one (but I still ran this in SSMS to be safe 😛 : EXECUTE('SELECT 1');)
-- Itzik Ben-Gan 2001
July 13, 2016 at 2:26 am
Revenant (7/8/2016)
George Vobr (7/8/2016)
Ed Wagner (7/8/2016)
Yes, it was an easy one. I admit I was looking for the trick.+1 😉
Thanks Steve and happy weekend to all.
+1 Yes, I even checked BoL...
Me too - I thought EXEC was an accepted way of writing EXECUTE and then thought "it can't be that easy", looked it up, and found it was that easy.
Tom
July 13, 2016 at 1:57 pm
TomThomson (7/13/2016)
Revenant (7/8/2016)
George Vobr (7/8/2016)
Ed Wagner (7/8/2016)
Yes, it was an easy one. I admit I was looking for the trick.+1 😉
Thanks Steve and happy weekend to all.
+1 Yes, I even checked BoL...
Me too - I thought EXEC was an accepted way of writing EXECUTE and then thought "it can't be that easy", looked it up, and found it was that easy.
I didn't look it up having seen it all over the place. IMHO there is a difference. It's all aesthetics and preference. I don't like seeing the shorthand version.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
November 15, 2016 at 12:26 pm
Knew the answer but not sure why there are 2 almost identical commands that do exactly the same thing
- Damian
November 15, 2016 at 12:42 pm
DamianC (11/15/2016)
Knew the answer but not sure why there are 2 almost identical commands that do exactly the same thing
Those are not 2 commands. It's one command and its short version. You can find different examples on this happening.
CREATE PROC and CREATE PROCEDURE
BEGIN TRAN and BEGIN TRANSACTION
Viewing 13 posts - 1 through 12 (of 12 total)
You must be logged in to reply to this topic. Login to reply