Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sql function return question

Status
Not open for further replies.

rsshetty

Programmer
Dec 16, 2003
236
US
what is wrong with this?
Code:
create function uf_PageTop3
returns varchar(1000)
as
begin
declare @str varchar(1000)

return @str
end
i keep getting the message-
A Return statement with a return value cannot be used in this ccontext

rsshetty.
It's always in the details.
 
No problem. Just got it.

create function uf_PageTop3() solved it.

rsshetty.
It's always in the details.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top