Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Data XML Analysis > How to format a...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 516 of 568
Post > Topic >>

How to format a NotifyTableChange command

by Darren Gosbell <jam@[EMAIL PROTECTED] > Apr 30, 2006 at 09:58 PM

Does anyone have any idea how to get the proactive caching client 
notifications working?

The do***entation says to send a NotifyTableChange command to the 
server, but I keep getting the following error.

-------
The NotifyTableChange element at line 1, column 150 (namespace 
urn:schemas-microsoft-com:xml-analysis) cannot appear under 
Envelope/Body/Execute/Command.
-------

I have tried setting up the request according to the Books Online 
do***entation and came up with the following:


<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/"">
 <Body>
  <Execute xmlns=""urn:schemas-microsoft-com:xml-analysis"">
   <Command>
    <NotifyTableChange>
     <Object>
      <DatabaseID>Adventure Works DW</DatabaseID>
      <CubeID>Adventure Works DW</CubeID>
      <PartitionID>Internet_Sales_2001</PartitionID>
     </Object>
     <TableNotifications>
      <TableNotification>
       <DbSchemaName>dbo</DbSchemaName>
       <DbTableName>FactInternetSales</DbTableName>
      </TableNotification>
     </TableNotifications>
    </NotifyTableChange>
   </Command>
  </Execute>
 </Body>
</Envelope>

I also had a variation on the above from a webcast on proactive caching, 
which had a snippet of the NotifyTableChange xml that included Provider, 
Source and InitialCatalog elements.

<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/"">
 <Body>
  <Execute xmlns=""urn:schemas-microsoft-com:xml-analysis"">
   <Command>
    <NotifyTableChange>
     <Provider>SQLOLEDB</Provider>
     <DataSource>localhost\SQL05</DataSource>
     <InitialCatalog>Adventure Works DW</InitialCatalog>
     <Object>
      <DatabaseID>Adventure Works DW</DatabaseID>
      <CubeID>Adventure Works DW</CubeID>
      <PartitionID>Internet_Sales_2001</PartitionID>
     </Object>
     <TableNotifications>
      <TableNotification>
       <DbSchemaName>dbo</DbSchemaName>
       <DbTableName>FactInternetSales</DbTableName>
      </TableNotification>
     </TableNotifications>
    </NotifyTableChange>
   </Command>
  </Execute>
 </Body>
</Envelope>


But both of these (any many other variations) have failed. 

I am using the following snippet of VB.Net code to send the command to 
the server.

  Dim client As New Microsoft.AnalysisServices.Xmla.XmlaClient
  client.Connect("localhost")
  client.Send(cmd, Nothing)
  client.Disconnect()

-- 
Thanks
Darren Gosbell [MCSD]
Blog: http://www.geekswithblogs.net/darrengosbell
 




 2 Posts in Topic:
How to format a NotifyTableChange command
Darren Gosbell <jam@[E  2006-04-30 21:58:50 
Re: How to format a NotifyTableChange command
Darren Gosbell <jam@[E  2006-05-01 23:30:27 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 9:14:33 CST 2008.