CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 How to dynamically assign a connection?

Print topic Send  topic

Author Message
jarbaby

Posts: 3
Posted: 04/13/2008, 1:54 PM

We support multiple database instances at our company, so any support tool we build would need to be able to first select the target db (e.g. url, username, password, ...) from a list, before any of the forms could be exercised.

What is the most straightforward way to do this? Is there a way to override the default connection assigned in the site.properties file?
View profile  Send private message
lwismanuel


Posts: 39
Posted: 04/13/2008, 9:28 PM

what's your development environment?
In PHP for instance, you could use this method: <connection>->connect(database, host, port, user, password)

Description
This method establishes a database connection using the specified parameters. This method can be used to establish a database connection at runtime, for instance when the connection parameters are not known at design-time.
View profile  Send private message
jarbaby

Posts: 3
Posted: 04/14/2008, 8:10 AM

We're a Java shop. I'm using the JSP taget for now, but could probably make it servlets also.

What I'd really like to do is to write my forms against a target connection name, but also have an index page where I assign the parameters to that connection.

View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.