dbTalk Databases Forums  

AS 2005 Connection Pooling

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


Discuss AS 2005 Connection Pooling in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
johnshiangoli via SQLMonster.com
 
Posts: n/a

Default AS 2005 Connection Pooling - 05-10-2006 , 05:03 AM






Hi, please may I have your assistance on how, if possible, to reuse
connections to Analysis Services from a Web Service? At present we use the
following

objAdomdConnection = New AdomdConnection(................)
objAdomdConnection.Open()
objAdomdCommand.Connection = objAdomdConnection
Dim objDeviceData As New clsDeviceData

' the following returns the MDX command string
objAdomdCommand.CommandText = objDeviceData.DeviceData( ..............
....)

' execute the MDX and return as XML and remove unwanted data
objXMLReader = objAdomdCommand.ExecuteXmlReader
objXMLReader.ReadToFollowing("Axis")
strReturnedXML = "<root><result>"
'read axis 0
strReturnedXML += objXMLReader.ReadOuterXml
'read axis 1
strReturnedXML += objXMLReader.ReadOuterXml

objXMLReader.ReadToFollowing("CellData")

strReturnedXML += objXMLReader.ReadOuterXml
strReturnedXML += "</result></root>"

objXMLReader.Close()
objAdomdConnection.Close()

Return (strReturnedXML)


Is it possible to create a multiple connections and reuse them without having
to open and close a connection to AS each time we run MDX?

Thanks

--
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums...-olap/200605/1

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.