Re: Execute MDX from T-sql -Procs and Cons?



Thank you Darren!
It was of great help! but that brings another question:

is there any 'best practice' white paper for setting up security access to
MSAS 2k5 :
- cell security based on WIN2k3 domain user accounts/groups (mapping the
user accounts in the dimensions to allow access to)
or
- build Application security layer to execute MDXes in SQL server db or
ADSI or XML file;
for example:map user groups, reports,mdx(es) in the SQL server table(s)?
That last approach I have used for MSAS 2k as cell security to be set up in
MSAS 2k schema had some issues...

thnx,
Alex




"Darren Gosbell" wrote:

> Pros
> ====
>
> * Returns a "flattened" rowset so the results look like they came from a
> SQL query - most reporting engines can handle this type of data better
> then a true multi-dimensional cellset. (Although you can get flattened
> row sets without going through T-SQL, this is the way Reporting Services
> works)
>
> * Allows you to set up stored procs with standard parameters, in AS2k
> you could not set up MDX stored procs.
>
> * If you need to join relational based information onto the results of
> an MDX query this is an easy way. (This was more relevant in AS2k where
> the structure of the cubes was more restrictive)
>
> Cons
> ====
>
> * You are introducing another layer in the call. Client talks to SQL
> Server, SQL Server talks to AS, AS passes results back to SQL Server,
> SQL Server passes results back to Client.
>
> * If you have any dimensional security in your cubes it will not work as
> the AS server will only see the user account which the SQL Server is
> running under.
>
> * T-SQL stored procs with parameters need to generate dynamic SQL in
> order to build the queries which produces a whole mess of doubled up
> quotes and string concatenations which can be a nightmare to maintain
> and debug.
>
> * There is a bug in the RTM version of SQL 2005 that prevents OPENQUERY
> calls from working with MDX queries that contain a WITH MEMBER or WITH
> SET clause (should be fixed in SP1 - but no ETA yet on SP1)
>
> See this post on my blog for an example of the bug (if you remove the
> WITH clause from the query you will get an example of a working query)
> http://geekswithblogs.net/darrengosbell/archive/2006/01/14/65848.aspx
>
>
> Alternatives
> ============
>
> * Reporting services in SQL 2005 is better at querying cubes than is was
> in SQL 2000 (although there is still room for improvement)
>
> * You can now write stored procs (in .Net assemblies) for AS 2005, so
> these may replace a lot of what was previously done calling MDX queries
> from T-SQL.
>
>
> --
> Regards
> Darren Gosbell [MCSD]
> Blog: http://www.geekswithblogs.net/darrengosbell
>
> In article <1137525846.602705.150240@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
> alexdeiden@xxxxxxxxx says...
> > Is there any advantage to execute mdx queries from T-SQL for MSAS 2005?
> > Examples of code if any on internet to look at?
> >
> > thank you,
> > Alex
> >
> >
>
>
.



Relevant Pages

  • Re: SQL or Access DB
    ... As far as encryption goes though... ... with Sql Server you can use SQL DMO and encrypt your stored procedures ... installation - Security was absolutely critical and in most instances, ... > then we create a nice gui around this database and sell it to automotive ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Is there any way to prevent hacker trying to guess sa password?
    ... and port 1433 will not be open. ... If someone can crash SQL Server by connecting to port 1433, ... You don't need multiple security experts. ...
    (microsoft.public.sqlserver.security)
  • Re: Getting to the bottom of MSDE network connection problems ...
    ... Brilliant, Nick, especially the explanation for local network user being ... authenticated as GUEST in WinXP SP2. ... > on a desktop OS like XP (meaning that, you can not compare SQL Server ... > again and selected the security tab. ...
    (microsoft.public.sqlserver.msde)
  • RE: Login failed for user (null).
    ... used at signon to authenticate in SQL Server. ... connect the remote SQL Server database), is there any other data accessing ... What's the security identity used to access the remote SQL Server, ... the worker process identity. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • [NT] SQL Extended Procedure Functions Contain Unchecked Buffers
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... SQL Server 7.0 and 2000 provide extended stored procedures, ... Several of the Microsoft-provided extended stored procedures have been ... Exploiting the flaw could enable an attacker to either cause the SQL ...
    (Securiteam)