The cost of query with usage of functions is as same as that of without
functions
In the below code, the query cost of insert is 0.02% and two select
statements costs same 0.04%
Declare @t table(mydate datetime)
Declare @i int
set @i=1
while @i<=5000
Begin
insert into @t values(getdate())
set @i=@i+1EndSelect mydate from @t
Select convert(varchar,mydate,112) from @t
But I thought usage of convert function will take more query cost
What do you think of this?
Madhivanan