This is a migrated thread and some comments may be shown as answers.

how to specify dynamic connection string

2 Answers 176 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ron
Top achievements
Rank 1
Ron asked on 17 Dec 2010, 10:31 AM
Hello ,

we are following SAAS model in our application and we are following different database for each company. We have one class library which will be shared by all the companies. For SAAS we need to provide a connection string runtime. Please provide us an efficient way to set the connection string run time for report.

Thanks in advance.

2 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 20 Dec 2010, 05:58 PM
Hello Michel,

The connectionString in the class library is valid only for the sake of the preview functionality. At runtime, it is the connectionString of your actual application that is being taken into account and in this line of thoughts, there is nothing specific you should take into account for setting it dynamically. Here is more info: Using connectionStrings from configuration file.

Kind regards,
Steve
the Telerik team
Get started with Telerik Reporting with numerous videos and detailed documentation.
0
Andrew Ryan
Top achievements
Rank 1
answered on 12 Apr 2011, 07:24 PM
FYI you are following the opposite of SaaS. If it was SaaS, there'd be one database for all clients. You're following a ASP, or hosted model.
Tags
General Discussions
Asked by
Ron
Top achievements
Rank 1
Answers by
Steve
Telerik team
Andrew Ryan
Top achievements
Rank 1
Share this question
or