Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

PROCESS cube via script or scheduled job Expand / Collapse
Author
Message
Posted Tuesday, September 13, 2011 10:39 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, October 24, 2011 6:58 AM
Points: 10, Visits: 26
i would like to create an automatic job or script or command to run PROCESS on my cube.

doug
Post #1174360
Posted Wednesday, September 14, 2011 3:54 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Thursday, September 4, 2014 5:46 AM
Points: 14, Visits: 228
You can create Either an XMLA script To process the cube OR SSAS Cube Process Task in SSIS Designer, For XMLA Script you need to connect to the Analysis Services , select the cube that you want to create Script, Right click and select process tab, a new window opens on the top corner select script, then select create XMLA script..
Copy the script in Job schedule Task in SSMS for processing the Cube.


aks27
MCP, MCDBA(2005), MCTS(BI)
Post #1174747
Posted Tuesday, December 18, 2012 3:42 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Sunday, September 7, 2014 10:41 PM
Points: 18, Visits: 51
I have done scheduling by copying the code and made the job in SQL server agent.
However, while running job, it gives error message like below.

Executed as user: VGROUP\BI-SERVER$. System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize ---> System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Access to the path 'C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Config\machine.config' is denied. (C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Config\machine.config) ---> System.UnauthorizedAccessException: Access to the path 'C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Config\machine.config' is denied. at System.IO.__Error.WinIOError(Int32 errorCode<c/> String maybeFullPath) at System.IO.FileStream.Init(String path<c/> FileMode mode<c/> FileAccess access<c/> Int32 rights<c/> Boolean useRights<c/> FileShare share<c/> Int32 bufferSize<c/> FileOptions options<c/> SECURITY_ATTRIBUTES secAttrs<c/> String msgPath<c/> Boolean bFromProxy) at System.IO.FileStream..ctor(String path<c/> FileMode mode<c/> FileAccess access<c/> FileShare share<c/> Int32 bufferSize<c/> FileOptions options<c/> String msgPath<c/> Boolean bFromProxy) at System.IO.FileStream..ctor(String path<c/> FileMode mode<c/> FileAccess access<c/> FileShare share) at System.Configuration.Internal.InternalConfigHost.StaticOpenStreamForRead(String streamName) at System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.OpenStreamForRead(String streamName<c/> Boolean assertPermissions) at System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.OpenStreamForRead(String streamName) at System.Configuration.ClientConfigurationHost.OpenStreamForRead(String streamName) at System.Configuration.BaseConfigurationRecord.InitConfigFromFile() --- End of inner exception stack trace --- at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal) at System.Configuration.BaseConfigurationRecord.ThrowIfInitErrors() at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey) --- End of inner exception stack trace --- at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey) at System.Configuration.ClientConfigurationSystem.PrepareClientConfigSystem(String sectionName) at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName) at System.Configuration.ConfigurationManager.GetSection(String sectionName) at System.Configuration.PrivilegedConfigurationManager.GetSection(String sectionName) at System.Net.Configuration.SettingsSectionInternal.get_Section() at System.Net.Sockets.Socket.InitializeSockets() at System.Net.IPAddress.InternalParse(String ipString<c/> Boolean tryParse) at System.Net.NetworkInformation.IpAddrString.ToIPAddressCollection() at System.Net.NetworkInformation.FixedInfo..ctor(FIXED_INFO info) at System.Net.NetworkInformation.SystemIPGlobalProperties.GetFixedInfo() at System.Net.NetworkInformation.SystemIPGlobalProperties.get_FixedInfo() at System.Net.NetworkInformation.SystemIPGlobalProperties.get_DomainName() at System.Net.CookieContainer..ctor() at Microsoft.AnalysisServices.Xmla.XmlaClient..ctor(StringCollection log) at Microsoft.SqlServer.Management.Smo.Olap.SoapClient..ctor(String serverName<c/> String connectionString) at OlapEvent(SCH_STEP* pStep<c/> SUBSYSTEM* pSubSystem<c/> SUBSYSTEMPARAMS* pSubSystemParams<c/> Boolean fQueryFlag). The step failed.


Please suggest.

Thanks in advance.
Post #1397662
Posted Tuesday, December 18, 2012 3:54 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Tuesday, September 16, 2014 2:20 AM
Points: 5,231, Visits: 5,106
Create a job in SQL Agent.

Job Step Type of SQL Server Analysis Services Command

Command below
<Batch xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
<Parallel>
<Process xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2" xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200" xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200">
<Object>
<DatabaseID>******************BUT YOUR CUBE DATABASE NAME HERE******************</DatabaseID>
</Object>
<Type>ProcessFull</Type>
<WriteBackTableCreation>UseExisting</WriteBackTableCreation>
</Process>
</Parallel>
</Batch>

Also ensure that you have given the SQL Agent account the access it needs on the right directories etc.




Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1 & Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger

Post #1397666
Posted Tuesday, December 18, 2012 4:00 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Sunday, September 7, 2014 10:41 PM
Points: 18, Visits: 51
Hello,

Thanks for prompt reply.
I have done the same thing.
But still facing issue.

Please advice.
Post #1397668
Posted Tuesday, December 18, 2012 4:01 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Tuesday, September 16, 2014 2:20 AM
Points: 5,231, Visits: 5,106
Have you set the correct permissions to the files it is complaining about not being able to access? Do the files even exist?



Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1 & Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger

Post #1397669
Posted Tuesday, December 18, 2012 4:17 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Sunday, September 7, 2014 10:41 PM
Points: 18, Visits: 51
Hello,

I am new to this. can u send me any documents with steps to follow on this?

Thanks
Post #1397681
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse