Export (0) Print
Expand All

BeginSession Element (XMLA)

Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).

Uses a SOAP header in a SOAP request message to start a new session on an instance of Microsoft SQL Server Analysis Services.

Namespace   urn:schemas-microsoft-com:xml-analysis

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
         xmlns="urn:schemas-microsoft-com:xml-analysis" />



Data type and length


Default value



0-1: Optional element that can occur once and only once.



Parent elements


Child elements


The BeginSession header element is part of a SOAP request sent to an Analysis Services instance, and explicitly starts a new session on the instance. The SOAP header returned by the SOAP response contains a Session element that identifies the new session. This new session identifier be stored and sent in subsequent SOAP requests using the Session header element.

If the BeginSession header element is not sent, a session is not explicitly started. If a session is not explicitly started, transactions on that session cannot be managed. In other words, you cannot use the following XML for Analysis (XMLA) commands: BeginTransaction, CommitTransaction, and RollbackTransaction. All XMLA methods and commands executed on an implicitly started session are considered to be atomic transactions.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft