Hi Friends
I want to know about Inline Table-Value User-Defined Function used in SQL?
Inline Table-Value User-Defined Function in SQL
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Kunal VaishyaRank #990 · 2K reputationPosted Oct 8, 2012, 3:12 AM EDT
create function udf_ParseDate
(
@date as datetime
) returns @dateinfo table
(
id int identity(1,1),
[date] datetime,
[year] int,
[month] smallint,
[day] smallint
)
as
begin
insert into @dateinfo
select @date, YEAR(@date), MONTH(@date), DAY(@date)
return;
end
Vikrant MoreRank #1,157 · 1.6K reputationPosted Oct 8, 2012, 3:17 AM EDT
http://msdn.microsoft.com/en-us/library/ms189294(v=sql.105).aspx