July 23, 2007 at 4:39 am
July 23, 2007 at 4:54 am
create
function function_test
(
@input varchar(30))
RETURNS
TABLE
AS
RETURN
(SELECT * from sysobjects where name like @input)
select
* from dbo.function_test('xp_cmdshell')
select
* from dbo.function_test('sp_cycle_errorlog')
They work even if the argument passed is the same. Do you want to have whitepapers related to this.
Cheers,
Sugeshkumar Rajendran
SQL Server MVP
http://sugeshkr.blogspot.com
July 23, 2007 at 5:03 am
Thanks - yes please - if could point me in the right direction.
July 24, 2007 at 7:41 am
No white papers on this but you can't you use profiler to track what is happening behind.
Cheers,
Sugeshkumar Rajendran
SQL Server MVP
http://sugeshkr.blogspot.com
July 24, 2007 at 7:55 am
Ta
July 24, 2007 at 8:38 am
Why do you need a white paper on the fact that if two users use a function, they get their own answers? It's that way with any function in any language...
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply