dbTalk Databases Forums  

How to check if script processing sucessfully?

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss How to check if script processing sucessfully? in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
nick
 
Posts: n/a

Default How to check if script processing sucessfully? - 04-08-2005 , 11:51 AM






I have the following script to process partitions..

dsoPartition.Process 1

Some time the process cannot be done because of error. How should I check if
the process has been done properly?

Reply With Quote
  #2  
Old   
Dave Wickert [MSFT]
 
Posts: n/a

Default Re: How to check if script processing sucessfully? - 04-08-2005 , 11:59 AM






If you haven't already done so, you should ALWAYS setup the system-wide
processing log file. It is a best practice. Bring up Analysis Manager,
right-click on the server and select "Properties..." -- then go to the
Logging tab. Check that you want the system-wide processing log file and
enter a known good value, e.g. C:\OLAP_Processing.txt

Everything that you see interactively whenever you do processing will also
be written to that file, i.e. what object is processed, its SQL statement,
timestamps for start and finish, and an errors that were encountered are
written to the log -- along with the username who requested it.

Hope that helps.
--
Dave Wickert [MSFT]
dwickert (AT) online (DOT) microsoft.com
Program Manager
BI SystemsTeam
SQL BI Product Unit (Analysis Services)
--
This posting is provided "AS IS" with no warranties, and confers no rights.

"nick" <nick (AT) discussions (DOT) microsoft.com> wrote

Quote:
I have the following script to process partitions..

dsoPartition.Process 1

Some time the process cannot be done because of error. How should I check
if
the process has been done properly?



Reply With Quote
  #3  
Old   
nick
 
Posts: n/a

Default Re: How to check if script processing sucessfully? - 04-08-2005 , 02:01 PM



Thanks, however, I found the log of the processing done by a script cannot be
written in the file...

"Dave Wickert [MSFT]" wrote:

Quote:
If you haven't already done so, you should ALWAYS setup the system-wide
processing log file. It is a best practice. Bring up Analysis Manager,
right-click on the server and select "Properties..." -- then go to the
Logging tab. Check that you want the system-wide processing log file and
enter a known good value, e.g. C:\OLAP_Processing.txt

Everything that you see interactively whenever you do processing will also
be written to that file, i.e. what object is processed, its SQL statement,
timestamps for start and finish, and an errors that were encountered are
written to the log -- along with the username who requested it.

Hope that helps.
--
Dave Wickert [MSFT]
dwickert (AT) online (DOT) microsoft.com
Program Manager
BI SystemsTeam
SQL BI Product Unit (Analysis Services)
--
This posting is provided "AS IS" with no warranties, and confers no rights.

"nick" <nick (AT) discussions (DOT) microsoft.com> wrote in message
news:7D317A08-9766-49F2-A29E-FC2390099F2D (AT) microsoft (DOT) com...
I have the following script to process partitions..

dsoPartition.Process 1

Some time the process cannot be done because of error. How should I check
if
the process has been done properly?




Reply With Quote
  #4  
Old   
SQL McOLAP
 
Posts: n/a

Default Re: How to check if script processing sucessfully? - 04-08-2005 , 05:15 PM



If you're reprocessing in full each time you run your script, I'd imagine
you're reprocessing all your dimensions first. In this case, the
LastProcessed property of a partition won't be accessible.

If you loop through your partitions in code after the processing is done,
you could check this with something like the following in your loop:

Set dsoPartition = dsoCube.MDStores(strPartition)
varProcessedDate = dsoPartition.LastProcessed

Have your error handler echo back, or do whatever you want, with the name of
the partition (be sure to do a resume next), since the second line will fail.


If you're reprocessing a partition that has already been processed (without
the dims having been reprocessed), you can use the above code to see if the
LastProcessed date/time was greater than the time you started your script.
If it is, it succeeded.


Good luck.


"nick" wrote:

Quote:
Thanks, however, I found the log of the processing done by a script cannot be
written in the file...

"Dave Wickert [MSFT]" wrote:

If you haven't already done so, you should ALWAYS setup the system-wide
processing log file. It is a best practice. Bring up Analysis Manager,
right-click on the server and select "Properties..." -- then go to the
Logging tab. Check that you want the system-wide processing log file and
enter a known good value, e.g. C:\OLAP_Processing.txt

Everything that you see interactively whenever you do processing will also
be written to that file, i.e. what object is processed, its SQL statement,
timestamps for start and finish, and an errors that were encountered are
written to the log -- along with the username who requested it.

Hope that helps.
--
Dave Wickert [MSFT]
dwickert (AT) online (DOT) microsoft.com
Program Manager
BI SystemsTeam
SQL BI Product Unit (Analysis Services)
--
This posting is provided "AS IS" with no warranties, and confers no rights.

"nick" <nick (AT) discussions (DOT) microsoft.com> wrote in message
news:7D317A08-9766-49F2-A29E-FC2390099F2D (AT) microsoft (DOT) com...
I have the following script to process partitions..

dsoPartition.Process 1

Some time the process cannot be done because of error. How should I check
if
the process has been done properly?




Reply With Quote
  #5  
Old   
nick
 
Posts: n/a

Default Re: How to check if script processing sucessfully? - 04-08-2005 , 09:03 PM



Thanks, in fact I used this method to check it. Are there any way to validate
the structure is good? I found the script can change a lot of properties and
sometime it can assign a bad value (for example, an wrong string for fact
table, data source, dimension attributes, etc) and it's not easy to find it
out....

"SQL McOLAP" wrote:

Quote:
If you're reprocessing in full each time you run your script, I'd imagine
you're reprocessing all your dimensions first. In this case, the
LastProcessed property of a partition won't be accessible.

If you loop through your partitions in code after the processing is done,
you could check this with something like the following in your loop:

Set dsoPartition = dsoCube.MDStores(strPartition)
varProcessedDate = dsoPartition.LastProcessed

Have your error handler echo back, or do whatever you want, with the name of
the partition (be sure to do a resume next), since the second line will fail.


If you're reprocessing a partition that has already been processed (without
the dims having been reprocessed), you can use the above code to see if the
LastProcessed date/time was greater than the time you started your script.
If it is, it succeeded.


Good luck.


"nick" wrote:

Thanks, however, I found the log of the processing done by a script cannot be
written in the file...

"Dave Wickert [MSFT]" wrote:

If you haven't already done so, you should ALWAYS setup the system-wide
processing log file. It is a best practice. Bring up Analysis Manager,
right-click on the server and select "Properties..." -- then go to the
Logging tab. Check that you want the system-wide processing log file and
enter a known good value, e.g. C:\OLAP_Processing.txt

Everything that you see interactively whenever you do processing will also
be written to that file, i.e. what object is processed, its SQL statement,
timestamps for start and finish, and an errors that were encountered are
written to the log -- along with the username who requested it.

Hope that helps.
--
Dave Wickert [MSFT]
dwickert (AT) online (DOT) microsoft.com
Program Manager
BI SystemsTeam
SQL BI Product Unit (Analysis Services)
--
This posting is provided "AS IS" with no warranties, and confers no rights.

"nick" <nick (AT) discussions (DOT) microsoft.com> wrote in message
news:7D317A08-9766-49F2-A29E-FC2390099F2D (AT) microsoft (DOT) com...
I have the following script to process partitions..

dsoPartition.Process 1

Some time the process cannot be done because of error. How should I check
if
the process has been done properly?




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.