Report Portal

Updating Partition Source SQL

Say you have a Measure Group with 100 partitions with source SQL = “select [some columns] from table1 where col1 = X” where X = 1 to 100. Table1 has been renamed to Table2 and you need to change all the partition source SQLs from “Table1” to “Table2”

If you have only 10 partitions then you could update them one by one in BIDS. Takes 5 minutes job done. But if you have 100 partitions? Hmm…. Do you want to spend an hour? No really.

So how do we update all partitions in 1 go?

Read more...

 

Tags: partition, script, manage

 

2007-2015 VidasSoft Systems Inc.