Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to connect to different servers at runtime in Crystal Report

Status
Not open for further replies.

mpsudheer

Programmer
Sep 22, 2003
4
IN
Hi ,

In crystal Report can i be able to connect to different servers based on the user input. Eg- User will select a location (Chennai, Bangalore etc..) based on which i have to connect to SQL Server on that location. I don't have a front end like VB or ASP. I have to do it directly in Crystal Report. Is it possible to do this????


Please suggest a solution

Thanks in advance

Sudheer

 
Hi,
AFAIK, that is not posible - the location of the datasource is static once the report is designed.
If the reason you want to do this is that different data is stored in those locations, then perhaps, if such a feature exists in SqlServer, you could create a link in one location's database to all the other locations and build custom versions of the tables ( in Oracle these would be Views, and be based on a database link) that get their data from the remote site and grant access based on the user's ID to just the correct items for that user.

If, however, you want to do this due to connection speed, etc. I do not know of any solution using just Crystal Reports (no front end)

[profile]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top