Click here to Skip to main content
15,895,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can any one tell me where can i find extended stored procedure.
I want to find xp_readerrorlog file.The stored procedure sp_readerrorlog is accepting only 4 parameters and i want to add 3 more parameters which are actually allowed by sp_readerrorlog. but i want to make sure that the extended stored procedure xp_readerrorlog also accepts 7 parameters.
Posted

Both stored procedures are part of the system and you can not change them...
sp_readerrorlog call xp_readerrorlog
SQL
create proc sys.sp_readerrorlog(
	@p1		int = 0,
	@p2		int = NULL,
	@p3		nvarchar(4000) = NULL,
	@p4		nvarchar(4000) = NULL)
as
begin

	if (not is_srvrolemember(N'securityadmin') = 1)
	begin
	   raiserror(15003,-1,-1, N'securityadmin')
	   return (1)
	end
	
	if (@p2 is NULL)
		exec sys.xp_readerrorlog @p1
	else
		exec sys.xp_readerrorlog @p1,@p2,@p3,@p4
end

xp_readerrorlog is not a real stored procedure and sits inside the xpstar.dll, and called by a specific engine created for extended stored procedures...
Also notice that both procedures are NON-DOCUMENTED, so you can use them only at your own risk and Microsoft will not help you out with them...
 
Share this answer
 
It is in Sql server :-
Databases -> System Databases -> msdb -> Programmability -> Stored Procedures -> System StoredProcedures -> there you will find [sys].[sp_readerrorlog]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900