Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I call tracelog from inside SQL server stored procedures?

0
Posted

How do I call tracelog from inside SQL server stored procedures?

0

Step 1 – create the stored procedure below: CREATE PROCEDURE Trace @Name varchar(70), @Desc varchar(70) = ” as BEGIN SET NOCOUNT ON DECLARE @object int DECLARE @hr int EXEC @hr = sp_OACreate ‘Trace32.Tracelog’, @object OUT if @HR=0 EXEC sp_OAMethod @object, ‘Add’, NULL, @Name, @Desc RETURN 0 END Step 2 – The Transact SQL required to trace is…

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123