title: Using a shared data source for dynamically generated and deployed reports
body: <p>I'm dynamically generating RDL files for SSRS 2008, assembling my reports from "building blocks" which I defined as reports on Report Server, and which I use as subreports on my generated report.</p>
  
  <p>On my Report Server, I have a single, shared data source which does work as long as I run stuff directly on the report server.</p>
  
  <p>What I'm trying to accomplish is this:</p>
  
  <ul>
  <li>my generated main report should reference that shared data source</li>
  <li>my subreports contained on the generated main report should also use the same data source</li>
  <li>after I deploy the report to report server using the webservice interface, I'd like to be able to actually see the report right away</li>
  </ul>
  
  <p>For now, I can generate and validate my RDL just fine, I can deploy it to the report server just fine, too - it shows up and all, great.</p>
  
  <p>But when I try to view the report, I get an error that my data source is invalid or has been removed or something....... </p>
  
  <p>What am I missing?? I am pretty sure I have the right data source - GUID for it and all - and the names do match. How do I tell a generated RDL to use the shared data source already present on the server??</p>