CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Allocation of database connection at runtime

Print topic Send  topic

Author Message
Gene

Posts: 14
Posted: 02/21/2005, 5:50 PM

Hi.

I need to create a connection to a secondary database that I won't know the name of until the user logs in. Can someone please tell me how to do this in CCS? In this instance, we are using ASP, but would consider jsp , C#, VB.Net or PHP if these offer some advantage in accomplishing the task at hand.

The databases are running on MySQL.

Thanks much!

Gene
View profile  Send private message
Tuong Do
Posted: 02/27/2005, 7:41 PM

What you need is the Connection String once you know the database name

IN ASP

Dim ObjCon, ConString
ConString = "Bla Bla" ' Depend on your database type
Set objCon = Server.CreateObject("ADODB.Connection")
ObjCon.ConnectionString = ConString

ObjCon.open


"Gene" <Gene@forum.codecharge> wrote in message
news:2421a8fe878388@news.codecharge.com...
> Hi.
>
> I need to create a connection to a secondary database that I won't know
> the
> name of until the user logs in. Can someone please tell me how to do this
> in
> CCS? In this instance, we are using ASP, but would consider jsp , C#,
> VB.Net
> or PHP if these offer some advantage in accomplishing the task at hand.
>
> The databases are running on MySQL.
>
> Thanks much!
>
> Gene
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>


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.