Showing posts with label model. Show all posts
Showing posts with label model. Show all posts

Thursday, March 29, 2012

Get Analysis Services Version string in c#.net 2.0

Hi

I want to get the version string for AS 2000 and 2005 in c#. Can I use the same object model to connect to both or do I need one for each. I saw a reference to DSO 8.5 which implied you could.

Either way could you let me know what DDL I should reference in Visual Studio.

Thanks

Steve

If you are using Microsoft.AnalysisServices.AdomdClient then you can use AdomdConnection.ServerVersion property to obtain textual representation of the version. If you use System.Runtime.InteropServices.Version object then you can construct one to parse such things like major and minor numbers.

It works for AS2005 and AS2000.|||Works a treat Andrew thanks

Friday, March 23, 2012

Generating SQL Database from Visio

I created a data model in Visio. When I try to generate a database in SQL
from the datamodel, the table and column descriptions do not tranfer.
I am using visio for Enterprise Architects (10.0.2705)Hi docsql,
Thank you for using the MSDN Managed Newsgroups.
This appears to be related to visio. This inquiry would best be posted to
the Microsoft.public.visio. The reason why we recommend posting
appropriately is you will get the most qualified pool of respondents, and
other customers who read the newsgroups regularly can either share their
knowledge or learn from your interaction with us. Thank you for your
understanding.
Sincerely yours,
Wei Lu
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
========================================
=============
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
========================================
=============
This posting is provided "AS IS" with no warranties, and confers no rights.sql

Generating SQL Database from Visio

I created a data model in Visio. When I try to generate a database in SQL
from the datamodel, the table and column descriptions do not tranfer.
I am using Visio for Enterprise Architects (10.0.2705)
Hi docsql,
Thank you for using the MSDN Managed Newsgroups.
This appears to be related to visio. This inquiry would best be posted to
the Microsoft.public.visio. The reason why we recommend posting
appropriately is you will get the most qualified pool of respondents, and
other customers who read the newsgroups regularly can either share their
knowledge or learn from your interaction with us. Thank you for your
understanding.
Sincerely yours,
Wei Lu
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
================================================== ===
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
================================================== ===
This posting is provided "AS IS" with no warranties, and confers no rights.

Generating SQL Database from Visio

I created a data model in Visio. When I try to generate a database in SQL
from the datamodel, the table and column descriptions do not tranfer.
I am using Visio for Enterprise Architects (10.0.2705)Hi docsql,
Thank you for using the MSDN Managed Newsgroups.
This appears to be related to visio. This inquiry would best be posted to
the Microsoft.public.visio. The reason why we recommend posting
appropriately is you will get the most qualified pool of respondents, and
other customers who read the newsgroups regularly can either share their
knowledge or learn from your interaction with us. Thank you for your
understanding.
Sincerely yours,
Wei Lu
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
=====================================================When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================This posting is provided "AS IS" with no warranties, and confers no rights.

Wednesday, March 21, 2012

Generating Model in Report Manager

Hi all,
I am trying to generate a model in report manager so i can use the
report builder function.
However when i click on 'Generate Model' then fill out a name and click
OK, it says: "You do not have sufficient permission to create this item
in this folder." However, i have administrator permissions and a
co-worker is unable to do it and he is the creator/manager of the
reporting services.
Any help/ideas are appreciated.
CheersAlso,
i tried the method of creating a Report Model Project in Sql Business
Intelligence Development Studio but again, when i tried to deploy it,
it gave me a permission error. And again, I do have administrators
access, so im not sure what kind of permissions i need.
Thanks|||I figured it out.
There was a problem with the type of permissions given.
I needed to go to site settings-Configure item-level role
definitions-Content Manager
then make sure everything is ticked off.
Then you should be good to go!!

Monday, March 19, 2012

Generating database scripts

Hi,
I have a Visio problem but this is the most relevant newsgroup I can find.
I've made my database model in Visio 2002 and now I'm trying to
Database>Generate to create the Sqlserver scripts. Unfortunately Visio
complains of a logical validation error at this point.
It appears I added a foreign key constraint at some point to the ER model
and have removed it from the diagram without removing it from the underlying
model. Visio is now complaining with various logical errors about the
constraint. I want to delete the constraint but I can't see how if Visio doe
s
not show it on the diagram.
Regards
Gordon>> I have a Visio problem but this is the most relevant newsgroup I can
Try microsoft.public.visio.database.modeling
Anith

Monday, March 12, 2012

Generated Report Model

I'm working on a software project that requires a reporting solution.
Of all the solutions we have looked at RS2005 seems to fit best with
our product, however, I had a few queries.
1. Our data is stored in a non-relation format but for reporting the
end user can select what data the wish to report on and a relational
table model is created. Because the table structure is not known until
this point, is it possible to create a Report Data Model in code so
that we can use the end user report designer.
2. Because of the JIT generation of the relational tables, the table
names are not known until the report is requested, is it possible to
pass the table names into the report as parameters? Is it possible to
use these parameters in th Report Data Model?
3. Is it possible to get column totals and group sub-totals in reports
designed in the Report Builder end user designer?
4. Is it (going to be) possible to design free flow reports in the
Report Builder rather than just table, matrix or chart reports?
Many thanks,
Adrian RitchieHi Adrian,
not knowing anything at all about your project...have you considered
using a separate data warehouse for the reporting solution and
propagating changes from the operational system to the BI System so
that you have access to a relational database for reporting...also,
your reporting and analysis needs are very likely to grow past simple
reporting, and I would think you are building in rather sever
limitations trying to write a JIT style application to generate tables
for reporting....I do not see how it could possibly scale as you must
JIT push data into tables when a report is requested rather than just
reading a table that is already there...'
Peter
www.peternolan.com|||Hi Peter,
I realise that my explaination of our system is rather vague but that
was as much as I could really write without breaching my NDA :(
Having a separate data warehouse sounds like a good idea and I will run
it past some of the other guys here but I fear may not be practical.
The reason the relational model is not generated until reports are
requested is that:
1. The data storage structure is flexible. We ship out a standard
structure but clients can modify and add to it as they see fit (with
appropriate security rights).
2. The data in the system is temporal. The end user can request a
report for any point in time for which there is data in the system.
The point in time that the user selects will determine what database
structure they get (as the structure may change over time).
The second problem may not be a problem at all, it's just that I
haven't thought of another solution for it, so any suggestions will be
greatfully received.
Adrian Ritchie|||Hi Adrian,
I understand the world of NDAs...no problems...
1. Changes to source data structures for applications rolled out is
always a problem but not a hard one to solve...
2. All data structures are 'temporal' it's just that most people don't
know it and think they don't change. They do and the analysis system
must take care of that...
I've done systems easily handling both 1 and 2......so I still think
that unless you have some really good reasons for building the
limitations into your reporting system that you very likely will do
taking a look at something separate would be a good idea...Like I said,
I know nothing about what you are doing...so these are just my
thoughts...
Peter
www.peternolan.com

Sunday, February 26, 2012

Generate Report Model from Cube with perspectives

1. Is there a way to generate SMDL programmatically from a cube besides using the RS Webservice API?

2. Is there a way to programmatically modify the SMDL once it has been created without doing crazy xml manipulation?

3. How can I create a Report Model from a cube with multiple perspectives? I want the model to only contain one perspective of the cube.

First, there's a real lack of responses on this forum....but hopefully this will help someone else that ran into these issues.

1. It's better to modify the SMDL that's generated from the API then to try and create it from scratch

2. The only way is with xml manipulation but it's actually not that bad. The schema is pretty simple. It just looks bloated at first with lots of repeating elements.

3. When the SMDL is generated, each perspective in the cube becomes a perspective in the report model. Then you can trim down the perspectives you don't want by removing the corresponding element from the SMDL and saving it back to reporting services.

Other things I notice is that once you modify the SMDL, you can't regenerate it using the Regenerate API call. Instead, you have to delete it and recreate it again. Also, once you recreate a model, you have to link up all the reports that were previously associated with it. I have no idea why RS removes the datasource from reports when the model is deleted. It's probably better to just leave it and if the datasource isn't there, then throw an error.

|||

Other things I notice is that once you modify the SMDL, you can't regenerate it using the Regenerate API call. Instead, you have to delete it and recreate it again. Also, once you recreate a model, you have to link up all the reports that were previously associated with it. I have no idea why RS removes the datasource from reports when the model is deleted. It's probably better to just leave it and if the datasource isn't there, then throw an error.

Actually, you will want to use the SetModelDefinition API instead of Renenerate. Items in the Report Server database are linked by GUID, not name. Just because it has the same name, we don't assume that it is the same item.

|||I do use SetModelDefinition API to modify the SMDL. But after a cube has been processed and the structure changed, I will need to regenerate the model base on the new cube. If I do that, all my reports break because the datasource reference is no longer valid even though the model has been recreated. This makes sense in the situations where the report may contain references to dimensions/measures no longer in the datasource. However, in my case, dimensions/measures are often added to the cube and not removed. I just think it's better to leave the datasource and have the report fail if dimensions/measures are missing instead of ALWAYS failing with an invalid datasource.

Friday, February 24, 2012

Generate Data Model

Hi,
I need to verify the relationship between tables. Is there
any possible to generate the output of the existing Data
Model?
Thanks,
RegardsHi
Look at sp_foreignkeys system stored procedure
Build a diagram to show relationship between tables.
"CC&JM" <anonymous@.discussions.microsoft.com> wrote in message
news:bea401c47a0c$d91206d0$a301280a@.phx.gbl...
> Hi,
> I need to verify the relationship between tables. Is there
> any possible to generate the output of the existing Data
> Model?
> Thanks,
> Regards|||I would build a diagram now also... Or you might use a 3rd part modelling
tool like Erwin..
Don't get too attached to the SQL DB Diagram... I don't think it will be in
the next version of SQL.
--
Wayne Snyder, MCDBA, SQL Server MVP
Mariner, Charlotte, NC
www.mariner-usa.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"CC&JM" <anonymous@.discussions.microsoft.com> wrote in message
news:bea401c47a0c$d91206d0$a301280a@.phx.gbl...
> Hi,
> I need to verify the relationship between tables. Is there
> any possible to generate the output of the existing Data
> Model?
> Thanks,
> Regards

Generate Data Model

Hi,
I need to verify the relationship between tables. Is there
any possible to generate the output of the existing Data
Model?
Thanks,
RegardsHi
Look at sp_foreignkeys system stored procedure
Build a diagram to show relationship between tables.
"CC&JM" <anonymous@.discussions.microsoft.com> wrote in message
news:bea401c47a0c$d91206d0$a301280a@.phx.gbl...
> Hi,
> I need to verify the relationship between tables. Is there
> any possible to generate the output of the existing Data
> Model?
> Thanks,
> Regards|||I would build a diagram now also... Or you might use a 3rd part modelling
tool like Erwin..
Don't get too attached to the SQL DB Diagram... I don't think it will be in
the next version of SQL.
Wayne Snyder, MCDBA, SQL Server MVP
Mariner, Charlotte, NC
www.mariner-usa.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"CC&JM" <anonymous@.discussions.microsoft.com> wrote in message
news:bea401c47a0c$d91206d0$a301280a@.phx.gbl...
> Hi,
> I need to verify the relationship between tables. Is there
> any possible to generate the output of the existing Data
> Model?
> Thanks,
> Regards

Generate Data Model

Hi,
I need to verify the relationship between tables. Is there
any possible to generate the output of the existing Data
Model?
Thanks,
Regards
Hi
Look at sp_foreignkeys system stored procedure
Build a diagram to show relationship between tables.
"CC&JM" <anonymous@.discussions.microsoft.com> wrote in message
news:bea401c47a0c$d91206d0$a301280a@.phx.gbl...
> Hi,
> I need to verify the relationship between tables. Is there
> any possible to generate the output of the existing Data
> Model?
> Thanks,
> Regards
|||I would build a diagram now also... Or you might use a 3rd part modelling
tool like Erwin..
Don't get too attached to the SQL DB Diagram... I don't think it will be in
the next version of SQL.
Wayne Snyder, MCDBA, SQL Server MVP
Mariner, Charlotte, NC
www.mariner-usa.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"CC&JM" <anonymous@.discussions.microsoft.com> wrote in message
news:bea401c47a0c$d91206d0$a301280a@.phx.gbl...
> Hi,
> I need to verify the relationship between tables. Is there
> any possible to generate the output of the existing Data
> Model?
> Thanks,
> Regards