Same as my previous reply. Consider using a custom data extension if you
"danb" <danb@discussions.microsoft.com> wrote in message
news:1F23DF16-314B-48E9-81CA-D96AC66D24C1@microsoft.com...
>I have a separate post about this, but since this is related, I'll see what
>I
> get here.
>
> I need to have a dynamic connect string so after a user authenticates, I
> can
> dynamically set Source and InitialCatalog based on who connected.
>
> Connect string in data source:
>
> Provider=MSOLAP.2;Client Cache Size=25;Auto Synch Period=10000;Data
> Source=http://servername;Initial Catalog=Database1
>
> We have 1 web site and multiple customer databases (Database1, Database2)
> on
> same Analysis server - who connects points them at correct InitialCatalog.
> Not sure if I can even do this even using security extension and data
> processing extension. I don't want a set of reports for every customer
> since
> only difference is the Initial Catalog. Also have to deal with
> development/test/production data source.
>
>
> "Teo Lachev [MVP]" wrote:
>
>> Version 1.0 of RS doesn't support expression-based connection strings.
>> This
>> is on the wish list for 2005 and most likely will be implemented.
>>
>> Yes, currently one way of doing this is to author a custom data
>> extension.
>> You don't have to pass the connection string as a parameter which is also
>> a
>> security risk. Instead, you could use a setting in in the RS web.config
>> file
>> if this is OK with your requirements.
>>
>> Another option is to use a report-specific data source. When the user
>> requests the report, load the report RDL in XML DOM, change the
>> connection
>> string, upload the report and render it.
>>
>> --
>> Hope this helps.
>>
>> ---------------------------------------------
>> Teo Lachev, MVP [SQL Server], MCSD, MCT
>> Author: "Microsoft Reporting Services in Action"
>> Publisher website:
http://www.manning.com/lachev >> Buy it from Amazon.com:
http://shrinkster.com/eq >> Home page and blog:
http://www.prologika.com/ >> ---------------------------------------------
>>
>> "CaymanVisitor" <CaymanVisitor@discussions.microsoft.com> wrote in
>> message
>> news:F767D15C-32B0-4B23-A1A0-963A6FCF288D@microsoft.com...
>> > I need to be able to set the ConnectionString for any datasources at
>> > run-time. Basically, I will design a report (against SQL Server 2000)
>> > and
>> my
>> > application will use URL Access to call this report. Depending on
>> > which
>> > database the application is running against, the report should run
>> > against
>> > the same database. This may be the same database as was set at
>> design-time,
>> > it may be another database on the same server, or it could be a
>> > database
>> on
>> > another server (all would be SQL Server 2000 though).
>> >
>> > I just need the ability to change which server/database the report uses
>> > at
>> > run-time. I've been able to do this using the SOAP API, but it is too
>> slow
>> > and has other problems. I also don't want to mess with linking
>> > servers,
>> > complicated queries, etc. I just want to be able to change the
>> > datasource
>> at
>> > run-time (like Crystal or any other reporting tool I've used in the
>> > past).
>> >
>> > I'm assuming this is going to mean a custom data extension. I also
>> > assume
>> > I'll have to pass the connection string as a parameter to the report
>> > using
>> > URL access (I'll encrypt the connection don't worry ;-).
>> >
>> > My real question is how can I get this parameter from the URL to my
>> > data
>> > extension. Will I need to manually create this parameter for each
>> > report?
>> > Can I hard-code this parameter in the data-extension (in the
>> > GetParameters
>> > interface)?
>> >
>> > Any thoughts or suggestions would be much appreciated!!!
>> >
>> >
>>
>>
>>