Showing posts with label ssas. Show all posts
Showing posts with label ssas. Show all posts

Tuesday, March 6, 2012

Acessing SSAS

Hi,

i am developing a BI project for a client with SQL Server 2005. I am able to access the Database Engine on my client's server through Management Studio using a specific account but i can't acess Analyis Services or Integration Services because i can only connect through Windows Authentication (all options on the connect window are greyed out) and my user is not a domain user.

How can i solve this?

Best Regards,

Tiago

Are you certain that SSAS and SSIS are online and that your login has permissions.

Sunday, February 19, 2012

Accessing SSAS Cube from Report Manager Error

Hey Forum Community

I seem to have a problem creating a model for my AS cube through Report Manager.

I have set up the data source as follows:

Name: Gates Aust Business Intelligence

Connection Type: MS SQL Server Analysis Services

Connection String: Data Source=MANT4003;initial catalog="GAPL Sales Analysis"

Connect Using: Windows Interegrated Security

This part works, but when i go to generate the model, i get the following error in the browser:

"

Cannot create a connection to data source ''. (rsErrorOpeningConnection) Get Online Help

For more information about this error navigate to the report server on the local server machine, or enable remote errors

In the reporting services log file i have the following errors:

w3wp!library!7!07/03/2006-10:51:40:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.DataSourceOpenException: Cannot create a connection to data source ''., ;
Info: Microsoft.ReportingServices.Diagnostics.Utilities.DataSourceOpenException: Cannot create a connection to data source ''. > Microsoft.AnalysisServices.AdomdClient.AdomdConnectionException: The connection either timed out or was lost. > System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. > System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
End of inner exception stack trace
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.IO.BufferedStream.Read(Byte[] array, Int32 offset, Int32 count)
at Microsoft.AnalysisServices.AdomdClient.DimeRecord.ForceRead(Stream stream, Byte[] buffer, Int32 length)
at Microsoft.AnalysisServices.AdomdClient.DimeRecord.ReadHeader()
at Microsoft.AnalysisServices.AdomdClient.DimeRecord..ctor(Stream stream)
at Microsoft.AnalysisServices.AdomdClient.DimeReader.ReadRecord()
at Microsoft.AnalysisServices.AdomdClient.TcpStream.GetDataType()
End of inner exception stack trace
at Microsoft.AnalysisServices.AdomdClient.XmlaClient.EndRequest()
at Microsoft.AnalysisServices.AdomdClient.XmlaClient.CreateSession(ListDictionary properties, Boolean sendNamespaceCompatibility)
at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.XmlaClientProvider.Microsoft.AnalysisServices.AdomdClient.AdomdConnection.IXmlaClientProviderEx.CreateSession(Boolean sendNamespaceCompatibility)
at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.ConnectToXMLA(Boolean createSession, Boolean isHTTP)
at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.Open()
at Microsoft.ReportingServices.Library.RSService.OpenDataSourceConnection(DataSourceInfo dataSourceInfo, CreateDataExtensionInstance createDataExtensionInstanceFunction, Boolean isUnattendedExecution, Boolean unwrapConnection, IntPtr clientToken, IDbConnection& unwrappedConnection)
End of inner exception stack trace
w3wp!library!1!07/03/2006-10:51:59:: i INFO: Call to GetPermissions:/
w3wp!library!1!07/03/2006-10:53:02:: i INFO: Call to GetPermissions:/

I have tried searching the forums and cannot find anything really helpful. I have had one cube setup and a model generated before and all was workin, but i had to delete it and i recreated the SSAS cube from scratch.

My user account has admin rights on the cube and also on the servers.

Server is Windows 2003

Client is Windows XP.

Any one got anythoughts on this or how i can determine what is wrong.?

Many Thanks


Scotty

Hi, i am facing the same problem. I found some information from MS though wasn't useful to me (My Report Server machine does not have an registry entry such as:

"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\MSSQLServer\SuperSocketNetLib"). Maybe can help u:

http://support.microsoft.com/default.aspx/kb/919710/

Let me know if u can handle the problem. (By the way my report server has only Reporting Services installed on (From SQL 2005 EE DVD), and the Analysis Server has Fully installed SQL Server 2005 Standart Edition. - can this be a problem?)

|||

Hi, i am facing the same problem. I found some information from MS though wasn't useful to me (My Report Server machine does not have an registry entry such as:

"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\MSSQLServer\SuperSocketNetLib"). Maybe can help u:

http://support.microsoft.com/default.aspx/kb/919710/

Let me know if u can handle the problem. (By the way my report server has only Reporting Services installed on (From SQL 2005 EE DVD), and the Analysis Server has Fully installed SQL Server 2005 Standart Edition. - can this be a problem?)

Accessing SSAS Cube from Report Manager Error

Hey Forum Community

I seem to have a problem creating a model for my AS cube through Report Manager.

I have set up the data source as follows:

Name: Gates Aust Business Intelligence

Connection Type: MS SQL Server Analysis Services

Connection String: Data Source=MANT4003;initial catalog="GAPL Sales Analysis"

Connect Using: Windows Interegrated Security

This part works, but when i go to generate the model, i get the following error in the browser:

"

Cannot create a connection to data source ''. (rsErrorOpeningConnection) Get Online Help

For more information about this error navigate to the report server on the local server machine, or enable remote errors

In the reporting services log file i have the following errors:

w3wp!library!7!07/03/2006-10:51:40:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.DataSourceOpenException: Cannot create a connection to data source ''., ;
Info: Microsoft.ReportingServices.Diagnostics.Utilities.DataSourceOpenException: Cannot create a connection to data source ''. > Microsoft.AnalysisServices.AdomdClient.AdomdConnectionException: The connection either timed out or was lost. > System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. > System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
End of inner exception stack trace
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.IO.BufferedStream.Read(Byte[] array, Int32 offset, Int32 count)
at Microsoft.AnalysisServices.AdomdClient.DimeRecord.ForceRead(Stream stream, Byte[] buffer, Int32 length)
at Microsoft.AnalysisServices.AdomdClient.DimeRecord.ReadHeader()
at Microsoft.AnalysisServices.AdomdClient.DimeRecord..ctor(Stream stream)
at Microsoft.AnalysisServices.AdomdClient.DimeReader.ReadRecord()
at Microsoft.AnalysisServices.AdomdClient.TcpStream.GetDataType()
End of inner exception stack trace
at Microsoft.AnalysisServices.AdomdClient.XmlaClient.EndRequest()
at Microsoft.AnalysisServices.AdomdClient.XmlaClient.CreateSession(ListDictionary properties, Boolean sendNamespaceCompatibility)
at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.XmlaClientProvider.Microsoft.AnalysisServices.AdomdClient.AdomdConnection.IXmlaClientProviderEx.CreateSession(Boolean sendNamespaceCompatibility)
at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.ConnectToXMLA(Boolean createSession, Boolean isHTTP)
at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.Open()
at Microsoft.ReportingServices.Library.RSService.OpenDataSourceConnection(DataSourceInfo dataSourceInfo, CreateDataExtensionInstance createDataExtensionInstanceFunction, Boolean isUnattendedExecution, Boolean unwrapConnection, IntPtr clientToken, IDbConnection& unwrappedConnection)
End of inner exception stack trace
w3wp!library!1!07/03/2006-10:51:59:: i INFO: Call to GetPermissions:/
w3wp!library!1!07/03/2006-10:53:02:: i INFO: Call to GetPermissions:/

I have tried searching the forums and cannot find anything really helpful. I have had one cube setup and a model generated before and all was workin, but i had to delete it and i recreated the SSAS cube from scratch.

My user account has admin rights on the cube and also on the servers.

Server is Windows 2003

Client is Windows XP.

Any one got anythoughts on this or how i can determine what is wrong.?

Many Thanks


Scotty

Hi, i am facing the same problem. I found some information from MS though wasn't useful to me (My Report Server machine does not have an registry entry such as:

"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\MSSQLServer\SuperSocketNetLib"). Maybe can help u:

http://support.microsoft.com/default.aspx/kb/919710/

Let me know if u can handle the problem. (By the way my report server has only Reporting Services installed on (From SQL 2005 EE DVD), and the Analysis Server has Fully installed SQL Server 2005 Standart Edition. - can this be a problem?)

|||

Hi, i am facing the same problem. I found some information from MS though wasn't useful to me (My Report Server machine does not have an registry entry such as:

"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\MSSQLServer\SuperSocketNetLib"). Maybe can help u:

http://support.microsoft.com/default.aspx/kb/919710/

Let me know if u can handle the problem. (By the way my report server has only Reporting Services installed on (From SQL 2005 EE DVD), and the Analysis Server has Fully installed SQL Server 2005 Standart Edition. - can this be a problem?)

Thursday, February 9, 2012

Accessing Member Properties trough ADOMD Client

Hi,

I have a SSAS base linked to a Datawarehouse on SQL Server 2005.

I would like to access to member properties of one of my dimensions thanks of 'Member' object proposed by Adomd.net

Unfortunately, the "MemberProperties" collection is empty and I know it should by filled with properties. Is this a known bug of the API ? I downloaded the SP2 but the problem remains.

I could avoid the trouble and directly attack the relational schema but this solution is not very elegant.

This is an exemple of my code :

For Each oNiveau In oConnexionAdomd.Cubes("$" & "MyDimension").Dimensions(1).Hierarchies("MyHierarchy").Levels

oCollectionMembres = oNiveau.GetMembers

For Each oMembre In oNiveau.GetMembers

'Here a specific treatment for all the members

For Each oPropMembre In oMembre.MemberProperties

'Here a specific treatment for all the member properties

Next

Next

Next

Thank in advance if someone can help me.

AP

hello Alexandre,

by default GetMembers method does not request member properties from the server.
However, it has an overload that allows you to specify a list of member properties that should be retrieved.
If you use it, for each member returned by GetMembers() all of the requested member properties would be returned.

for example:

oCollectionMembres = oNiveau.GetMembers(0, Long.MaxValue, New String() {"[Employee].[Employee].[Employee].[Birth Date]"}, filters)
or
oCollectionMembres = oNiveau.GetMembers(0, Long.MaxValue, New String() {oNiveau.LevelProperties("Email Address").UniqueName}, filters)


and in case you need to retrieve all available member properties, you can do something like this (rough sample):

Dim oCollectionMembres As MemberCollection

Dim props(oNiveau.LevelProperties.Count - 1) As String

Dim prop As LevelProperty
Dim index As Integer
index = 0

For Each prop In oNiveau.LevelProperties
props(index) = prop.UniqueName
index = index + 1
Next

Dim filters(-1) As MemberFilter

oCollectionMembres = oNiveau.GetMembers(0, Long.MaxValue, props, filters)

Dim oMembre As Member

For Each oMembre In oCollectionMembres

'Here a specific treatment for all the members

Dim oPropMembre As MemberProperty

For Each oPropMembre In oMembre.MemberProperties

'Here a specific treatment for all the member properties
Debug.WriteLine(oPropMembre.Name)

Next

Next

Notice however, that there might be many member properties defined, and it might slow things down if you retrieve all of them for all members.
if you anticipate that you might need access to member properties for only some (not many) members, then you might just
use member.FetchAllProperties() as needed [you will find the member properties inside member.Properties collection in that case].

FetchAllProperties requires a round trip to the server, so you should decide based on what the actual scenario is whether to request
all properties up front using proper GetMembers overload (if you need them for many members), or request them afterwards with FetchAllProperties (if just for a few).

hope this helps,

|||

Hello Mary,

And a great thanks, it perfectly work.

Effectively, I did not use the overload.

Thank you again.

AP

Accessing Member Properties trough ADOMD Client

Hi,

I have a SSAS base linked to a Datawarehouse on SQL Server 2005.

I would like to access to member properties of one of my dimensions thanks of 'Member' object proposed by Adomd.net

Unfortunately, the "MemberProperties" collection is empty and I know it should by filled with properties. Is this a known bug of the API ? I downloaded the SP2 but the problem remains.

I could avoid the trouble and directly attack the relational schema but this solution is not very elegant.

This is an exemple of my code :

For Each oNiveau In oConnexionAdomd.Cubes("$" & "MyDimension").Dimensions(1).Hierarchies("MyHierarchy").Levels

oCollectionMembres = oNiveau.GetMembers

For Each oMembre In oNiveau.GetMembers

'Here a specific treatment for all the members

For Each oPropMembre In oMembre.MemberProperties

'Here a specific treatment for all the member properties

Next

Next

Next

Thank in advance if someone can help me.

AP

hello Alexandre,

by default GetMembers method does not request member properties from the server.
However, it has an overload that allows you to specify a list of member properties that should be retrieved.
If you use it, for each member returned by GetMembers() all of the requested member properties would be returned.

for example:

oCollectionMembres = oNiveau.GetMembers(0, Long.MaxValue, New String() {"[Employee].[Employee].[Employee].[Birth Date]"}, filters)
or
oCollectionMembres = oNiveau.GetMembers(0, Long.MaxValue, New String() {oNiveau.LevelProperties("Email Address").UniqueName}, filters)


and in case you need to retrieve all available member properties, you can do something like this (rough sample):

Dim oCollectionMembres As MemberCollection

Dim props(oNiveau.LevelProperties.Count - 1) As String

Dim prop As LevelProperty
Dim index As Integer
index = 0

For Each prop In oNiveau.LevelProperties
props(index) = prop.UniqueName
index = index + 1
Next

Dim filters(-1) As MemberFilter

oCollectionMembres = oNiveau.GetMembers(0, Long.MaxValue, props, filters)

Dim oMembre As Member

For Each oMembre In oCollectionMembres

'Here a specific treatment for all the members

Dim oPropMembre As MemberProperty

For Each oPropMembre In oMembre.MemberProperties

'Here a specific treatment for all the member properties
Debug.WriteLine(oPropMembre.Name)

Next

Next

Notice however, that there might be many member properties defined, and it might slow things down if you retrieve all of them for all members.
if you anticipate that you might need access to member properties for only some (not many) members, then you might just
use member.FetchAllProperties() as needed [you will find the member properties inside member.Properties collection in that case].

FetchAllProperties requires a round trip to the server, so you should decide based on what the actual scenario is whether to request
all properties up front using proper GetMembers overload (if you need them for many members), or request them afterwards with FetchAllProperties (if just for a few).

hope this helps,

|||

Hello Mary,

And a great thanks, it perfectly work.

Effectively, I did not use the overload.

Thank you again.

AP