November 4, 2015 at 5:50 am
mbaldock (11/4/2015)
but there are no database objects referenced by the function!
My understanding is that you get a better performing Query Plan (no SPOOL) if you use SCHEMABINDING.
June 12, 2018 at 2:06 pm
Paul White:
How do I actually use your inline table function?
After the creating the function, I ran this:
DECLARE @Bitbucket VARCHAR(8000);
SELECT @Bitbucket = iTVF.cleaned
FROM [vdvPosPayPNCBank_RKL] D
CROSS
APPLY dbo.IF_CleanWithReplace(D.PayeeName1) iTVF;
which simply returns 'Commands completed successfully.'
June 12, 2018 at 2:21 pm
dhart - Tuesday, June 12, 2018 2:06 PMPaul White:
How do I actually use your inline table function?After the creating the function, I ran this:
DECLARE @Bitbucket VARCHAR(8000);
SELECT @Bitbucket = iTVF.cleaned
FROM [vdvPosPayPNCBank_RKL] D
CROSS
APPLY dbo.IF_CleanWithReplace(D.PayeeName1) iTVF;which simply returns 'Commands completed successfully.'
That's just assigning values to the variable. It's a method to test execution times. To actually return rows, use a proper column list instead.
Viewing 3 posts - 46 through 47 (of 47 total)
You must be logged in to reply to this topic. Login to reply