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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rand function problem

Status
Not open for further replies.

joxa83

Programmer
Nov 30, 2005
7
YU
I need to call rand functino within another function but server raises an error.For example I can't create followng function

create function dbo.test()
returns float
as
begin
declare @i float
select @i = rand()
return @i
end
 
Seems like a SQL Server problem. You'll probably get (better) answers in the SQL Server forum.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top