reporting services - SSRS: Caching a shared Oracle Dataset with date parameter -



reporting services - SSRS: Caching a shared Oracle Dataset with date parameter -

i using ssrs (2008r2) create big study against oracle database.

because of size of study wanted cache shared dataset overnight.

the dataset has single parameter should default today's date changeable in study (although trigger cache).

i have struggled 3 days , wanted document how got work, feedback on approach.

1. oracle datasource: i found passing parameters dataset worked me using native oracle drivers, not ole db drivers.

2. shared dataset: i never able ssrs pass date parameter oracle. in oracle query hence used conversion to_date(:effectivedate,'yyyy-mm-dd"t"hh24:mi:ss') (you'll see why had utilize iso 8601 format later). when adding variable :effectivedate sql query parameter automatically added shared dataset. caused oracle error ora-01008: not variables bound. resolved deleting dataset parameter , clicking "refresh fields" on dataset query screen re-create it. difference apparently beingness parameter name has colon. i have set dataset parameter shown below in screenshot:

the parameter of type "text" , defaults today @ midnight in iso 8601 format (=format(today(),"yyyy-mm-dd\t\0\0:\0\0:\0\0")) 3. study dataset: the study dataset uses shared dataset above , has dataset parameter. in case want study dataset parameter take date study parameter pass string shared dataset parameter below:

the dataset parameter set value =format(parameters!effectivedate.value,"yyyy-mm-dd\t\0\0:\0\0:\0\0") 4. study parameter: the study parameter set "date" type below default of =today():

5. shared dataset caching: first set shared dataset utilize cached info (on study server via browser):

then set "cache refresh plan":

the cache refresh plan seems picky parameter format , lastly step seems work if passing dates iso 8601 compliant strings. 6. notes: :effectivedate name of oracle string bind variable , effectivedate name of study parameter. alter code appropriately. i interested in date (i.e. not time). if need time may need create changes. in order allow end user know how old info was, added column ,sysdate data_age sql query. able reference age of info in study header first(fields!report_date.value, "<report_dataset_name") i able create snapshots of study of prompts greyed out, though other prompts effect study filtering. to have different prompt defaults in snapshots used test isnothing(user!userid). i'd love know if there improve way. my illustration isn't in order in set things (i.e. reference study parameter before showing setup).

reporting-services ssrs-2008-r2

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -