dbTalk Databases Forums  

ASSL Question - XMLA to run Trace

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss ASSL Question - XMLA to run Trace in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Kyle Henly
 
Posts: n/a

Default ASSL Question - XMLA to run Trace - 09-11-2006 , 10:56 AM






Hi,

I scripted a profiler trace definition to an .XMLA file, opened it and run
it to start a trace. I did it this way because i wanted to log off and keep
it running in the background.

However, i'm having real trouble putting together the XMLA to stop the
trace. I have the Trace ID etc and have been trying to run the XMLA as
follows but it keeps erroring with: "The Command element at line 7, column 24
(namespace urn:schemas-microsoft-com:xml-analysis) cannot appear under
Envelope/Body/Execute/Command."

Here's my XMLA, no giggling please!

<Command>
<Delete xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
<Object>
<Trace>
<ID>MicrosoftProfilerTrace1157987651</ID>
<Name>MicrosoftProfilerTrace1157987651</Name>
</Trace>
</Object>
</Delete>
</Command>

Any help would be most appreciated!
--
Kyle Henly
DBA
U.K.

Reply With Quote
  #2  
Old   
Edward Melomed [MSFT]
 
Posts: n/a

Default Re: ASSL Question - XMLA to run Trace - 09-11-2006 , 05:11 PM






Try and use SQL Server profiler for creating such trace. One of the options
in the dialog when creating a trace gives you ability to log a trace into a
file.

For stopping the trace you've created take a look again at what SQL Server
profiler doing. Please note, by default SQL Profiler trace has a filter,
filtering out all the events belong to the Profiler itself.
Remove the filter from the trace definition and then try to trace activity
another trace is doing when created and stopped. This way you should see the
right syntax for Delete command.

Edward Melomed.
--
This posting is provided "AS IS" with no warranties, and confers no rights.


"Kyle Henly" <KyleHenly (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi,

I scripted a profiler trace definition to an .XMLA file, opened it and run
it to start a trace. I did it this way because i wanted to log off and
keep
it running in the background.

However, i'm having real trouble putting together the XMLA to stop the
trace. I have the Trace ID etc and have been trying to run the XMLA as
follows but it keeps erroring with: "The Command element at line 7, column
24
(namespace urn:schemas-microsoft-com:xml-analysis) cannot appear under
Envelope/Body/Execute/Command."

Here's my XMLA, no giggling please!

Command
Delete
xmlns="http://schemas.microsoft.com/analysisservices/2003/engine"
Object
Trace
ID>MicrosoftProfilerTrace1157987651</ID
Name>MicrosoftProfilerTrace1157987651</Name
/Trace
/Object
/Delete
/Command

Any help would be most appreciated!
--
Kyle Henly
DBA
U.K.



Reply With Quote
  #3  
Old   
Kyle Henly
 
Posts: n/a

Default Re: ASSL Question - XMLA to run Trace - 09-13-2006 , 09:09 AM



Hi Edward,

Thanks again for another cool fix!

I used Profiler (without the filter on Profiler) to trace another Profiler
trace and then stopped that trace and viewed the output. The XMLA to use was
then clear to see.

For the benefit of others, here's the XMLA to stop a trace, it's not exactly
rocket science

<Delete xmlns="http://schemas.microsoft.com/analysisservices/2003/engine"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<Object>
<TraceID>MicrosoftProfilerTrace1158155501</TraceID>
</Object>
</Delete>

Cheers...
--
Kyle Henly
DBA
U.K.


"Edward Melomed [MSFT]" wrote:

Quote:
Try and use SQL Server profiler for creating such trace. One of the options
in the dialog when creating a trace gives you ability to log a trace into a
file.

For stopping the trace you've created take a look again at what SQL Server
profiler doing. Please note, by default SQL Profiler trace has a filter,
filtering out all the events belong to the Profiler itself.
Remove the filter from the trace definition and then try to trace activity
another trace is doing when created and stopped. This way you should see the
right syntax for Delete command.

Edward Melomed.
--
This posting is provided "AS IS" with no warranties, and confers no rights.


"Kyle Henly" <KyleHenly (AT) discussions (DOT) microsoft.com> wrote in message
news:386DECD5-E0E0-4832-958D-7FB79254E2FE (AT) microsoft (DOT) com...
Hi,

I scripted a profiler trace definition to an .XMLA file, opened it and run
it to start a trace. I did it this way because i wanted to log off and
keep
it running in the background.

However, i'm having real trouble putting together the XMLA to stop the
trace. I have the Trace ID etc and have been trying to run the XMLA as
follows but it keeps erroring with: "The Command element at line 7, column
24
(namespace urn:schemas-microsoft-com:xml-analysis) cannot appear under
Envelope/Body/Execute/Command."

Here's my XMLA, no giggling please!

Command
Delete
xmlns="http://schemas.microsoft.com/analysisservices/2003/engine"
Object
Trace
ID>MicrosoftProfilerTrace1157987651</ID
Name>MicrosoftProfilerTrace1157987651</Name
/Trace
/Object
/Delete
/Command

Any help would be most appreciated!
--
Kyle Henly
DBA
U.K.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.