Showing posts with label project. Show all posts
Showing posts with label project. Show all posts

Tuesday, March 27, 2012

Analysis Services - Step by Step: Errors related to feature availability and configuration

On page 56 of SQL Server 2005 Analysis Services Step by Step, I tried to DEPLOY the project, and it failed with this msg:

Errors related to feature availability and configuration: The 'Measure expressions' feature is not included in the 'Standard Edition' SKU.

Is it because of my Standard Edition? If it is, could I change the 'Measure expressions' some how to get by this msg and go on with the book?

Yes, you are running into this situation because you working against Standard edition of SQL Server Analysis Services.

You can install free trial edition from http://www.microsoft.com/sql/downloads/trial-software.mspx. It has full set of features for you to comlete any tutorial.

As for the steps described in the book, or how to work around them. You should point your questions to the authors of the book.

Edward.
--
This posting is provided "AS IS" with no warranties, and confers no rights.

|||

Thanks Edward. I'll try with the trial edition.

I was also trying to post the question to the authors, but I could not find the link to it.

|||

Hi mate

I have the same problem. Could you tell me how to fix this issue please. I'm using SQL 2005 standand version. Does it cause the problem? Please tell me as soon as possible.

thank you in adv

Wen Ou

|||I have the same problem. I am also interested in a fix, not the trial version. Could someone please let me know how to change the configuration of the cube.sql

Analysis Services - Step by Step: Errors related to feature availability and configuration

On page 56 of SQL Server 2005 Analysis Services Step by Step, I tried to DEPLOY the project, and it failed with this msg:

Errors related to feature availability and configuration: The 'Measure expressions' feature is not included in the 'Standard Edition' SKU.

Is it because of my Standard Edition? If it is, could I change the 'Measure expressions' some how to get by this msg and go on with the book?

Yes, you are running into this situation because you working against Standard edition of SQL Server Analysis Services.

You can install free trial edition from http://www.microsoft.com/sql/downloads/trial-software.mspx. It has full set of features for you to comlete any tutorial.

As for the steps described in the book, or how to work around them. You should point your questions to the authors of the book.

Edward.
--
This posting is provided "AS IS" with no warranties, and confers no rights.

|||

Thanks Edward. I'll try with the trial edition.

I was also trying to post the question to the authors, but I could not find the link to it.

|||

Hi mate

I have the same problem. Could you tell me how to fix this issue please. I'm using SQL 2005 standand version. Does it cause the problem? Please tell me as soon as possible.

thank you in adv

Wen Ou

|||I have the same problem. I am also interested in a fix, not the trial version. Could someone please let me know how to change the configuration of the cube.

Analysis services

I am doing a data mining project using the census bureau data set. The data set is a pdf, so I saved it as a text file, I imported as a flat source file and am trying to create my data source? But am having trouble with this? Please help?

Can you post details of the errors you're seeing? This might be a question for the Integration Services forum.|||i fixed the error. but thanks. Perhaps, you could help me with Analysis services, Data source views. Under the Data source views tab select tables and views, if I only have one file of data with columns and rows, is it possible to data mine this one file. or should i be incorporating more files?|||

There are no specific restrictions on the number of tables you need to use to perform data mining. You can certainly mine data in a single file/table if that contains the attributes you're interesting in mining.

For example, you could have a single customer table with demographic information like age, income and so forth and you could apply several of the available algorithms to it to derive interesting patterns - clustering to group together similar customers, decision trees to classify them based on how they behave with respect to a predictable attribute or naive-bayes to explore dependencies and differences between attributes for customers.

|||

How would you implement the MS Time series algorithm to predict population patterns? or would you suggest I use MS decision trees?

Thanks

|||Create a table with date and columns for each series you want to analyze

Sunday, March 25, 2012

Analysis Service Deployment Error

Hi,

I created a SQL Server 2005 Analysis Service project. When I tried to deploy a standard Decision Tree model, it gave me errors (see below). Clearly, I can't use ntext data type with DISTINCT, but how can I change the SQL command since it was automatically created? What was the final impact of removing the DISTINCT word from the SQL command?

SQL queries 1
SELECT DISTINCT [dbo_Training_x0020_Data].[Hellos] AS [dbo_Training_x0020_DataHellos0_0]

FROM [dbo].[Training Data] AS [dbo_Training_x0020_Data]

Error Messages 1
OLE DB error: OLE DB or ODBC error: The ntext data type cannot be selected as DISTINCT because it is not comparable.; 42000.

Please assist!

MaryYou can change the data type in the DSV, or add a calculated DSV column that casts the ntext to text

Thursday, March 22, 2012

analysis server

I am getting following deployment fail error when I try to deploy the
cube on the server:
"Error 1 The project could not be deployed to the
'myserver_2005'
server because of the following connectivity problems : A connection
cannot be made to redirector. Ensure that 'SQL Browser' service is
running. To verify or update the name of the target server, right-
click on the project in Solution Explorer, select Project Properties,
click on the Deployment tab, and then enter the name of the
server. 0
0 "
How do I start the analysis server so that I can deploy the cube? I
have already manually started the analysis server and browser is
running. How do I connect to the analysis server using SSMS? I am
getting an error when I use SSMS to connect to analysis server 'a
connection can not be made to the redirector. Make sure that 'sql
browser service' is running'. I made sure. Any ideas?On Sep 18, 10:54 am, SB <othell...@.yahoo.com> wrote:
> I am getting following deployment fail error when I try to deploy the
> cube on the server:
> "Error 1 The project could not be deployed to the
> 'myserver_2005'
> server because of the following connectivity problems : A connection
> cannot be made to redirector. Ensure that 'SQL Browser' service is
> running. To verify or update the name of the target server, right-
> click on the project in Solution Explorer, select Project Properties,
> click on the Deployment tab, and then enter the name of the
> server. 0
> 0 "
> How do I start the analysis server so that I can deploy the cube? I
> have already manually started the analysis server and browser is
> running. How do I connect to the analysis server using SSMS? I am
> getting an error when I use SSMS to connect to analysis server 'a
> connection can not be made to the redirector. Make sure that 'sql
> browser service' is running'. I made sure. Any ideas?
Okay this may be a bug. Can anyone please point me to a link how do I
fix this? I have already installed sp2.|||Why are you starting a new thread with a question you've already asked?
Look at my response to your original post.
ML
--
Matija Lah, SQL Server MVP
http://milambda.blogspot.com/

Monday, March 19, 2012

An internal error occurred on the report server. See the error log

I've just installed SQL Reporting Services. I have a Report Project in
Visual Studio and added already existing reports. When I try to build the
solution, I get the following error for each report:
An internal error occurred on the report server. See the error log for more
details.
Looking in the Windows Event Viewer, there are no entries that correspond to
this. The most recent entry is an hour ago, even though I got this error
message two minutes ago.
Am I looking in the wrong place? Does anyone have any other suggestions as
to why this won't work?
BTW: I also tried to upload the report on the reportserver. When I try to
run a report from there, I get a similar error:
An internal error occurred on the report server. See the error log for more
details. (rsInternalError) Get Online Help
SELECT permission denied on object 'ExecutionCache', database
'ReportServerTempDB', owner 'dbo'. SELECT permission denied on object
'ExecutionCache', database 'ReportServerTempDB', owner 'dbo'. SELECT
permission denied on object 'SnapshotData', database 'ReportServerTempDB',
owner 'dbo'.
Thank you in advance,
MKFigured it out! I had already set the permissions for the ASPNET user in the
ReportServer table to allow RSExecRole... just had to do the same for the
ReportServerTempDB
"k89mmk" wrote:
> I've just installed SQL Reporting Services. I have a Report Project in
> Visual Studio and added already existing reports. When I try to build the
> solution, I get the following error for each report:
> An internal error occurred on the report server. See the error log for more
> details.
> Looking in the Windows Event Viewer, there are no entries that correspond to
> this. The most recent entry is an hour ago, even though I got this error
> message two minutes ago.
> Am I looking in the wrong place? Does anyone have any other suggestions as
> to why this won't work?
> BTW: I also tried to upload the report on the reportserver. When I try to
> run a report from there, I get a similar error:
> An internal error occurred on the report server. See the error log for more
> details. (rsInternalError) Get Online Help
> SELECT permission denied on object 'ExecutionCache', database
> 'ReportServerTempDB', owner 'dbo'. SELECT permission denied on object
> 'ExecutionCache', database 'ReportServerTempDB', owner 'dbo'. SELECT
> permission denied on object 'SnapshotData', database 'ReportServerTempDB',
> owner 'dbo'.
> Thank you in advance,
> MK|||k89mmk wrote:
> An internal error occurred on the report server. See the error log
> for more details. (rsInternalError) Get Online Help
> SELECT permission denied on object 'ExecutionCache', database
> 'ReportServerTempDB', owner 'dbo'. SELECT permission denied on object
> 'ExecutionCache', database 'ReportServerTempDB', owner 'dbo'. SELECT
> permission denied on object 'SnapshotData', database
> 'ReportServerTempDB', owner 'dbo'.
You will find the reporting-logs normally in:
C:\Programme\Microsoft SQL Server\MSSQL\Reporting Services\LogFiles
Your error assumed that you use nt-authentification and your nt-account has
no sufficient rights on the ReportServer-DBs OR the account under wich the
reportenginge is running has no sufficient rights on his own dbs
regards
Frank
www.xax.de

Sunday, March 11, 2012

an error with a subreport

Hello , I have created a new project of reporting services, then I added a rdl file of another report this latter contain asubreport, then when I tried to run this report the rendering of the sub report is failed displaying this error message :

[rsErrorExecutingSubreport] An error occurred while executing the subreport ‘AcctSummarySR’: Report /Sous-rapport Rsum du compte cannot be compiled. Verify the report name and that the report is in the current project.

Even when I add a new sub report the same error message is diplayed related to the new report

Thanks in advance

Both report files (main report and sub report) have to be included in your VS project.|||How do I reference a report in another project (but in the same solution) as a subreport?

an error with a subreport

Hello , I have created a new project of reporting services, then I added a rdl file of another report this latter contain asubreport, then when I tried to run this report the rendering of the sub report is failed displaying this error message :

[rsErrorExecutingSubreport] An error occurred while executing the subreport ‘AcctSummarySR’: Report /Sous-rapport Rsum du compte cannot be compiled. Verify the report name and that the report is in the current project.

Even when I add a new sub report the same error message is diplayed related to the new report

Thanks in advance

Both report files (main report and sub report) have to be included in your VS project.|||How do I reference a report in another project (but in the same solution) as a subreport?

An error occurred during the execution of the SQL file 'InstallCommon.sql'.

Hi,

I'm using Microsoft Visual Studio 2005 Beta 2.

I have created Personal Site using Project Template. 1st it started giving me error related to "Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed."

Then i made changes in web.config under configuration "User Instance=True" to "User Instance=False".

Now it started giving me error as follows:
An error occurred during the execution of the SQL file 'InstallCommon.sql'. The SQL error number is 262 and the SqlException message is: CREATE DATABASE permission denied in database 'master'.
Creating the C__INETPUB_WWWROOT_SITE_APP_DATA_ASPNETDB database...

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

SQLExpress database file auto-creation error:

The connection string specifies a local SQL Server Express instance using a database location within the applications App_Data directory. The provider attempted to automatically create the application services database because the provider determined that the database does not exist. The following configuration requirements are necessary to successfully check for existence of the application services database and automatically create the application services database:

    If the applications App_Data directory does not already exist, the web server account must have read and write access to the applications directory. This is necessary because the web server account will automatically create the App_Data directory if it does not already exist. If the applications App_Data directory already exists, the web server account only requires read access to the applications App_Data directory. This is necessary because the web server account will attempt to verify that the SQL Server Express database already exists within the applications App_Data directory. Note that revoking read access on the App_Data directory from the web server account will prevent the provider from correctly determining if the SQL Server Express database already exists. This will cause an error when SQL Server Express attempts to create a duplicate of an already existing database. SQL Server Express must be installed on the machine. If the application services database does not already exist, the SQL Server Express service account must have read and write access to the applications App_Data directory. This is necessary because the SQL Server Express service account will create the application services database. The web server account used to connect to SQL Server Express must have rights to create a new database.
      When using the local web server(Cassini) installed with Visual Studio, the logged-in user needs the dbcreator privilege in the appropriate SQL Server Express instance. When using IIS, the process account needs the dbcreator privilege in the appropriate SQL Server Express instance. Only consider granting a process account dbcreator privilege on secure development machines. Do not grant the dbcreator privilege on production machines without fully investigating and understanding the security ramifications of running a production web server with the dbcreator privilege. The process account requiring dbcreator privilege varies depending on operating system platform and ASP.NET configuration settings: For IIS5, and IIS6 running in IIS5 isolation mode, the default web server account is the local ASPNET machine account. For IIS6 native mode, the default web server account is NETWORK SERVICE. If application impersonation is enabled, then the application impersonation account requires the dbcreator privilege. If an explicit account was specified for the web server process (either in the <processModel> element for IIS5 and IIS5 isolation mode, or the application pool account on IIS6), then the explicit account requires the dbcreator privilege.

Stack Trace:

[SqlExecutionException: An error occurred during the execution of the SQL file 'InstallCommon.sql'. The SQL error number is 262 and the SqlException message is: CREATE DATABASE permission denied in database 'master'. Creating the C__INETPUB_WWWROOT_SITE_APP_DATA_ASPNETDB database...] System.Web.Management.SqlServices.ExecuteFile(String file, String server, String database, String dbFileName, SqlConnection connection, Boolean sessionState, SessionStateType sessionStatetype) +783 System.Web.Management.SqlServices.SetupApplicationServices(String server, String user, String password, Boolean trusted, String connectionString, String database, String dbFileName, SqlFeatures features, Boolean install) +721 System.Web.DataAccess.SqlConnectionHelper.EnsureValidMdfFile(String fullFileName, String dataDir, String connectionString) +365

The new problem is a result of turning off User Instance. The ASP user doesn't have the permissions to create databases and do the other things specified in the message. User Instance set to true will give your ASP user administration permissions. Your choices are to grant all the approprite database priviledges as specified in the error message to the asp user or to get user instance working. User instance probably didn't work because the asp user didn't have Windows read write permissions to the directory where the database files are located.

Thursday, March 8, 2012

An error has occurred while establishing a connection to the server. When connecting to SQ

I get the following error and have been trying to figure out why I keep getting it. Initially, I had placed my project under wwwroot folder and ran it under IIS and it gave this error. Then I moved it to my local C drive and same thing. I am sharing this project with two other co-workers and all our config files and code files are same...they don't get this error but I do. I checked that SQL Server Client Network Utility has TCP/IP and the 'Named Pipes' enabled. I thought maybe I have setting in the Visual Studio 2005 that I'm not aware of that's causing this problem...it can't be the server since my co-workers aren't having this error and can't be anything in the code since all of us are sharing this project through vss. I dont' think using different version of .net framework can create this error. I changed the version from 2.0 to use 1.1x and it gave same error... Any help would be greatly appreciated. Thanks in advance.

Server Error in '/RBOdev' Application.

An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

Description:An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details:System.Data.SqlClient.SqlException: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

[SqlException (0x80131904): An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)] System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +739123 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188 System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject) +685966 System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +109 System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +383 System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +181 System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +170 System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +130 System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +28 System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +424 System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66 System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +496 System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82 System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105 System.Data.SqlClient.SqlConnection.Open() +111 System.Web.DataAccess.SqlConnectionHolder.Open(HttpContext context, Boolean revertImpersonate) +84 System.Web.DataAccess.SqlConnectionHelper.GetConnection(String connectionString, Boolean revertImpersonation) +197 System.Web.UI.WebControls.WebParts.SqlPersonalizationProvider.GetConnectionHolder() +16 System.Web.UI.WebControls.WebParts.SqlPersonalizationProvider.LoadPersonalizationBlobs(WebPartManager webPartManager, String path, String userName, Byte[]& sharedDataBlob, Byte[]& userDataBlob) +195 System.Web.UI.WebControls.WebParts.PersonalizationProvider.LoadPersonalizationState(WebPartManager webPartManager, Boolean ignoreCurrentUser) +95 System.Web.UI.WebControls.WebParts.WebPartPersonalization.Load() +105 System.Web.UI.WebControls.WebParts.WebPartManager.OnInit(EventArgs e) +497 System.Web.UI.Control.InitRecursive(Control namingContainer) +321 System.Web.UI.Control.InitRecursive(Control namingContainer) +198 System.Web.UI.Control.InitRecursive(Control namingContainer) +198 System.Web.UI.Control.InitRecursive(Control namingContainer) +198 System.Web.UI.Control.InitRecursive(Control namingContainer) +198 System.Web.UI.Control.InitRecursive(Control namingContainer) +198 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +692



Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832

I actually figured out the problem. Under the <asp:WebpartManger> control, I had to specify Personalization-Enabled to "False"...I guess by default, if it is not set, it will be true...in that case, it'll look for a database in SQL Server 2005 which I"m not using...my database that I'm connecting to is in SQL Server 2000. However, the only thing that is still not clear to me is that my two other co-workers are sharing the same project with me using VSS. All their settings are the same as mine and clearly they had the WebpartManger and property for personalization was not set to false...but they did not get this error...why was I the only one getting it? Is there another location where the personalization property can be set to false? Thanks...

|||

Hi,

From your description, it seems that you are using WebParts feature in your website project, right?

Generally, when you are using WebParts in your application, it requires SQLExpress database, which is a built-in database in Microsoft Visual Studio 2005. Since webparts need personalization features , and all these personalization data would be stored in database.

Besides, in webparts there are several modes, including Browser,Design,Cateloge and etc. When you are in Browser mode, the personalization feature can be set in false status. But for other modes, it requires the personalization and database support.

Also, if you want to achieve personalization on the machine with a SQLServer 2000, you can use aspnet_regsql.exe tool to convert the ASPNETDB database in SQLExpress to your SQLServer database, and change the corresponding provider to achieve your personalization.

Thanks.

Wednesday, March 7, 2012

An appropriate use of MSDE

We have a project where 16 PCs will be used to run wildlife models.
Can we install MSDE on each PC and use it as a backend to the model?
Do CALs need to be puchased? I'm more than a little confused after
scanning the Microsoft web site.
Thanks
Yes, you can use MSDE on all your PC's with no CAL's. If this is a new
project, you might want to look at SQL Express instead.
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Randy K" <wawork@.hotmail.com> wrote in message
news:43bd49fd.2536234@.msnews.microsoft.com...
> We have a project where 16 PCs will be used to run wildlife models.
> Can we install MSDE on each PC and use it as a backend to the model?
> Do CALs need to be puchased? I'm more than a little confused after
> scanning the Microsoft web site.
> Thanks

An Amazing Errorrrrrrrrrrrrrrrr

Hi All Friends

i have an amazing error in my project

i wrote a project in ASP.NET 2

a part of this project change a value in a row in a table in sql 2005 to another value

i used it in my computer (With Local host and my own iis) and it works properly and without any problem

but when i upload it in internet it have this error:

"Concurrency violation: the UpdateCommand affected 0 of the expected 1 records. "

can anyone help me?

i think the error is from my table in sql 2005 but i dont know what is wrong in it

thanks for your cares friends and im waiting for your usefull answers

It means that someone changed the row between the time you initially retrieved it, and the time you did the update. Or you are pointing at the wrong database for the update.

|||

No it cannot happen

because this form has a password that no one have it and no one know about this form

it cant be

but it's a Notice here :When i delete my table and recreate it again it work probably but sometimes it has this error again

|||

Well, if you're absolutely sure that there is no way that the row could have been changed--there could be other forms or other apps that are updating the table--then there is something wrong in the concurrency code. Did a wizard generate this for you, or did you write some custom code?

Don

Saturday, February 25, 2012

amount manipulation in crystal report

I am developing a project in vb.net .
I am displaying the amount in my detail section.
There is a situation in which , if the amount is negative it has to be displayed as receipts and if else it has to be showed as payments .

like

Description Payments Receipts
monthly instalment 6000.23 0.00
finance charges 0.00 6000.23(this is -ve value)

I have struck here . Can any one help me to come out of this situation.

I am attaching two jpeg files in which

1 vbcode_rpt : will show the present look of the report.

2 PBcode_rpt : will show how i want the report to be presented.

thanks in advance

vijiPlz explain one thing to me that do have single Field in the database for Payments and Receipts or individual Field.

in ur case u can apply formula as (if its single Field)

if {Reportname.Field}<0 then
Payments
elseif {Reportname.Field} then
Receipts|||hai silly star

i got the solution for that situation.

Both the columns are one column in the database ie. the amount column for that description.

if the amount column value is < 0 then it has to be displayed as receipts and if it is > 0 then it has to be displayed as payments .

i added two unbound currency columns in the details section and in the formula dialog I added this formula to get my requirement done.

This is in the unbound_currency_column1 ie. Payments
if {tmp_ter_pool.Amount} > 0
then {tmp_ter_pool.Amount}
else
0.00

This is in the unbound_currency_column2 ie. Receipts
if {tmp_ter_pool.Amount} < 0
then {tmp_ter_pool.Amount}
else
0.00|||Its great u find the solution but did u try the one i told u?? :cool:

Friday, February 24, 2012

AMO with VB.Net

Hi All,

I am working on a project that require me to build cubes programmatically i.e., using AMO object and VB.Net. I am trying to find a sample that builds cubes using VB.Net.

I can add further features to it based on the sample.

Can any one help me at their earliest?

Thanks

Sekhar PC

Check the following two links:

http://www.asptoday.com/Content.aspx?id=2351

and

http://sorosjing.cnblogs.com/archive/2005/12/08/292848.html

Have fun.

Yones

|||

Hi,

Thank you for your reply.

When I tried to create a cube by exactly following the sample, always it threw an error "Could not deploy the cube".

Is there a better sample that help to create cube using AMO and dotnet? A sample that get deployed though the source is AdventureWorks only.

Thanks

SekharPC

|||

Thanks for the reply.

When I tried to implement the steps given in the above listed website, everytime I got an error message saying "Could not create cubes". Then I copied and pasted and tried to create cubes using AdventureWorks database. Still the error continued.

Can a better sample be found which I can use to create my cubes dynamically?

An early reply will be of great help to me.

Thanks

SekharPC

|||

There is great C# sample in http://msdn2.microsoft.com/en-us/library/ms345091.aspx

it was very useful for me.

Mohsen

AMO with VB.Net

Hi All,

I am working on a project that require me to build cubes programmatically i.e., using AMO object and VB.Net. I am trying to find a sample that builds cubes using VB.Net.

I can add further features to it based on the sample.

Can any one help me at their earliest?

Thanks

Sekhar PC

Check the following two links:

http://www.asptoday.com/Content.aspx?id=2351

and

http://sorosjing.cnblogs.com/archive/2005/12/08/292848.html

Have fun.

Yones

|||

Hi,

Thank you for your reply.

When I tried to create a cube by exactly following the sample, always it threw an error "Could not deploy the cube".

Is there a better sample that help to create cube using AMO and dotnet? A sample that get deployed though the source is AdventureWorks only.

Thanks

SekharPC

|||

Thanks for the reply.

When I tried to implement the steps given in the above listed website, everytime I got an error message saying "Could not create cubes". Then I copied and pasted and tried to create cubes using AdventureWorks database. Still the error continued.

Can a better sample be found which I can use to create my cubes dynamically?

An early reply will be of great help to me.

Thanks

SekharPC

|||

There is great C# sample in http://msdn2.microsoft.com/en-us/library/ms345091.aspx

it was very useful for me.

Mohsen

AMO with VB.Net

Hi All,

I am working on a project that require me to build cubes programmatically i.e., using AMO object and VB.Net. I am trying to find a sample that builds cubes using VB.Net.

I can add further features to it based on the sample.

Can any one help me at their earliest?

Thanks

Sekhar PC

Check the following two links:

http://www.asptoday.com/Content.aspx?id=2351

and

http://sorosjing.cnblogs.com/archive/2005/12/08/292848.html

Have fun.

Yones

|||

Hi,

Thank you for your reply.

When I tried to create a cube by exactly following the sample, always it threw an error "Could not deploy the cube".

Is there a better sample that help to create cube using AMO and dotnet? A sample that get deployed though the source is AdventureWorks only.

Thanks

SekharPC

|||

Thanks for the reply.

When I tried to implement the steps given in the above listed website, everytime I got an error message saying "Could not create cubes". Then I copied and pasted and tried to create cubes using AdventureWorks database. Still the error continued.

Can a better sample be found which I can use to create my cubes dynamically?

An early reply will be of great help to me.

Thanks

SekharPC

|||

There is great C# sample in http://msdn2.microsoft.com/en-us/library/ms345091.aspx

it was very useful for me.

Mohsen

AMO with VB.Net

Hi All,

I am working on a project that require me to build cubes programmatically i.e., using AMO object and VB.Net. I am trying to find a sample that builds cubes using VB.Net.

I can add further features to it based on the sample.

Can any one help me at their earliest?

Thanks

Sekhar PC

Check the following two links:

http://www.asptoday.com/Content.aspx?id=2351

and

http://sorosjing.cnblogs.com/archive/2005/12/08/292848.html

Have fun.

Yones

|||

Hi,

Thank you for your reply.

When I tried to create a cube by exactly following the sample, always it threw an error "Could not deploy the cube".

Is there a better sample that help to create cube using AMO and dotnet? A sample that get deployed though the source is AdventureWorks only.

Thanks

SekharPC

|||

Thanks for the reply.

When I tried to implement the steps given in the above listed website, everytime I got an error message saying "Could not create cubes". Then I copied and pasted and tried to create cubes using AdventureWorks database. Still the error continued.

Can a better sample be found which I can use to create my cubes dynamically?

An early reply will be of great help to me.

Thanks

SekharPC

|||

There is great C# sample in http://msdn2.microsoft.com/en-us/library/ms345091.aspx

it was very useful for me.

Mohsen

AMO Role Creation

Hi,

I have just created a role using AMO. I'm supposed to see this role in the Analysis Services Project once I open it, right? But I cannot. I tried executing again my codes, and it prompted me an error, which means that it was created successfully.

Error:

Another 'Role' object has the 'TestRole' name.

Why can I not see that in the AS Project?

By here is my code:

Svr = New Server

Svr.Connect("Data Source=localhost")

DB = Svr.Databases("AS17")

Cub = DB.Cubes("Test")

UserRole = DB.Roles.Add("TestRole")

UserRole.Members.Add(New RoleMember("xa\chemps"))

UserRole.Update()

thanks a lot!

cherriesh

The role you created using AMO will exist on your server. If you are using a standard project (not in online mode) you will not see changes that are made on the server. You can use the "import 9.0 database" option in BIDS to create a new project based on a database on the server, or you can connect BIDS directly to the server in online mode or use SSMS to see the role. Changes made to the server are not automatically propogated back to a project.

|||

Hi,

The server is my localhost. How do i know if my project is in online mode? I already deployed and processed it before i created the roles in AMO and run it. In SSMS, where can I find there the role?

Thanks a lot!

cherriesh.

|||

If from BIDS, you go File -> Open Analysis Service Database and open the database from your localhost, then you are in online mode, but if BIDS was open when you created the role you would need to refresh or re-open to see the new role.

But if are doing a file -> open project, or clicking on an entry in the recent projects list, then you are in off line mode (which is the recommended way of working)

In SSMS you connect to the SSAS server, expand the databases in the object browser and then expand the roles. Once again, if you create the role while SSMS is open you would need to refresh the roles node.

Sunday, February 12, 2012

Alternatives to SQL Mail?

(SQL Server 2000, SP3a)
Hello all!
We've got a development project that is using on SQL Mail (xp_sendmail) that we're moving
to production . Our production environment is configured in such a way that we want to
avoid using SQL Mail. I see a commonly recommended alternative is the xp_smtp_sendmail
.DLL. However, as noted by the documentation from: http://www.sqldev.net/xp/xpsmtp.htm
<Quote>
The current version does not provide @.query support like the one found in SQL Mail
</Quote>
Naturally, the way that we're using SQL Mail is reliant upon the @.query parameter. ;-)
Are there any other alternatives, or perhaps someone has extended/wrapped the
xp_smtp_sendmail to provide more functionality? Basically, we use the SQL Mail with the
@.query to invoke a query that will then attach the results as a comma-separated (.CSV)
file. If such a thing exists, I'd be greatly obliged to learn of it!
Thanks!
John PetersonCan't you run the query and output it to a text file (e.g. see a couple of
options at http://www.aspfaq.com/2482) and then just attach the file? In
this way, you could have greater control over the output, as well...
"John Peterson" <j0hnp@.comcast.net> wrote in message
news:eIBS1pBoDHA.3024@.tk2msftngp13.phx.gbl...
> (SQL Server 2000, SP3a)
> Hello all!
> We've got a development project that is using on SQL Mail (xp_sendmail)
that we're moving
> to production . Our production environment is configured in such a way
that we want to
> avoid using SQL Mail. I see a commonly recommended alternative is the
xp_smtp_sendmail
> .DLL. However, as noted by the documentation from:
http://www.sqldev.net/xp/xpsmtp.htm
> <Quote>
> The current version does not provide @.query support like the one found in
SQL Mail
> </Quote>
> Naturally, the way that we're using SQL Mail is reliant upon the @.query
parameter. ;-)
> Are there any other alternatives, or perhaps someone has extended/wrapped
the
> xp_smtp_sendmail to provide more functionality? Basically, we use the SQL
Mail with the
> @.query to invoke a query that will then attach the results as a
comma-separated (.CSV)
> file. If such a thing exists, I'd be greatly obliged to learn of it!
> Thanks!
> John Peterson
>|||Thanks, Aaron!
I guess I was looking for something as convenient as xp_sendmail, with which to execute
the query, format it as a comma-separated file, and send it as an email attachment all in
one fell swoop. :-)
With the link you provided -- I suppose I could "roll my own", but I had hoped someone had
already done all the leg work. ;-)
"Aaron Bertrand [MVP]" <aaron@.TRASHaspfaq.com> wrote in message
news:%23YGc6vBoDHA.2140@.TK2MSFTNGP09.phx.gbl...
> Can't you run the query and output it to a text file (e.g. see a couple of
> options at http://www.aspfaq.com/2482) and then just attach the file? In
> this way, you could have greater control over the output, as well...
>
> "John Peterson" <j0hnp@.comcast.net> wrote in message
> news:eIBS1pBoDHA.3024@.tk2msftngp13.phx.gbl...
> > (SQL Server 2000, SP3a)
> >
> > Hello all!
> >
> > We've got a development project that is using on SQL Mail (xp_sendmail)
> that we're moving
> > to production . Our production environment is configured in such a way
> that we want to
> > avoid using SQL Mail. I see a commonly recommended alternative is the
> xp_smtp_sendmail
> > .DLL. However, as noted by the documentation from:
> http://www.sqldev.net/xp/xpsmtp.htm
> >
> > <Quote>
> > The current version does not provide @.query support like the one found in
> SQL Mail
> > </Quote>
> >
> > Naturally, the way that we're using SQL Mail is reliant upon the @.query
> parameter. ;-)
> >
> > Are there any other alternatives, or perhaps someone has extended/wrapped
> the
> > xp_smtp_sendmail to provide more functionality? Basically, we use the SQL
> Mail with the
> > @.query to invoke a query that will then attach the results as a
> comma-separated (.CSV)
> > file. If such a thing exists, I'd be greatly obliged to learn of it!
> >
> > Thanks!
> >
> > John Peterson
> >
> >
>|||> With the link you provided -- I suppose I could "roll my own", but I had
hoped someone had
> already done all the leg work. ;-)
Well, I've been meaning to update http://www.aspfaq.com/2403 with such a
technique, because that's the only complaint I've ever heard about
xp_smtp_sendmail. Sounds like you will get to it before I do, so feel free
to send along any examples you can provide; I'll add them to the article,
and credit you of course.
Cheers,
Aaron|||"John Peterson" <j0hnp@.comcast.net> wrote in message
news:eIBS1pBoDHA.3024@.tk2msftngp13.phx.gbl...
> (SQL Server 2000, SP3a)
> Hello all!
> We've got a development project that is using on SQL Mail (xp_sendmail)
that we're moving
> to production . Our production environment is configured in such a way
that we want to
> avoid using SQL Mail. I see a commonly recommended alternative is the
xp_smtp_sendmail
> .DLL. However, as noted by the documentation from:
http://www.sqldev.net/xp/xpsmtp.htm
> <Quote>
> The current version does not provide @.query support like the one found in
SQL Mail
> </Quote>
> Naturally, the way that we're using SQL Mail is reliant upon the @.query
parameter. ;-)
> Are there any other alternatives, or perhaps someone has extended/wrapped
the
> xp_smtp_sendmail to provide more functionality? Basically, we use the SQL
Mail with the
> @.query to invoke a query that will then attach the results as a
comma-separated (.CSV)
> file. If such a thing exists, I'd be greatly obliged to learn of it!
> Thanks!
> John Peterson
>
Is this an email that is being invoked by a trigger, or a scheduled task?
If it's not a trigger, ie. you run it every hour, day or week then we
actually wrote a VB Script that creates an email using CDO (Collaboration
Data Objects) with a really great HTML body (that is larger than 8000
characters - the main reason for using VB script) and added it as a
scheduled task. Works really well but a lot of work to do something that
should be relatively simple.
NEIL.
ps: If you want the source I'll happily divulge it to you.

Thursday, February 9, 2012

Alternative to Merge Replication

I am involved in a development project of an enterprise level hosted application. The main product is a smart client application, and will soon have an embedded sql express option. At the moment I am building the WM 5.0 mobile application and have been advised against using merge replication to syncronize the databases.

The reasons have been that our main SQL 2005 database is on a hosted server that would have to open ports directly to the internet for the merge replication to do its thing. So far I have built some realy pain in the *** manual synchronization that loops through every table it needs to sync looking for a last modified time... pushing and pulling this way. This way it can pass DataSets through a web service just like the smart client app is working today.

Is Merge Replication acceptable or even safe in a situation like this? Any advice or opinions would be appreciated.

Thanks.

You do not need SQL Server to be on the internet for replication. Replication goes through IIS, so you only need IIS on the internet. You can use all security measures IIS offers including SSL and authentication to protect your data.

Keep in mind what whatever method you would choose, you have to have some open port for device to connect to. It's doubtful your home grown solution would be more secure than IIS which was around for years, tested by hackers, fixed and tested again. So, yes, replication should be appropriate for that.

|||

Ok, I understand what you are saying. Since it is hosted through IIS I guess we could avoid setting up IIS on our data boxes and create a virtual directory to the snapshot folder or whatever it exposed through IIS.

Another concern is filtering data. We have 6000 or so customers sharing one SQL server database and the data exposed to them is filtered through organization ID's and logins..., Is merge replication accessible through code (also the filters) or would each device have to be setup in SQL manually with a static view of data?

I'm sorry for the questions that might be ignorant, but I can't seem to find any good documentation on what situations merge replication is optimal for.

Thanks again.

|||

Excuse us for catching this up very lately.

You can use SqlCeReplication.HostName as your filter on SQL Server. You can use HOST_NAME() function on the SQL Server filter which would then replaced byt the SqlCeReplication.HostName to know which records this device/client is interested in.

I am sure there will be many more question that would arise and I sincerely request you to go through the resources available and get prepared for better questions!

Resources are listed out @. http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=295034&SiteID=1

Thanks,

Laxmi