CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Change connection

Print topic Send  topic

Author Message
Rookie
Posted: 10/13/2004, 7:23 AM

When I change the connection name, CCS change it in the property window, but not in the code, I had to change it manually from DBTEST to DBAccountant in all pages...

is this a bug?
peterr


Posts: 5971
Posted: 10/13/2004, 7:28 AM

It's not a bug. The connection name should never be changed (at least I never change it). But of course you can change connection settings/configuration, while leaving the connection name unchanged.
If you have a strong reason to change the connection name then you may need to run Find & Replace to change it in all your files.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
rosorio

Posts: 9
Posted: 10/14/2004, 7:37 AM

The problem is the following one
Conecction with the data base is made in the file common.asp
This file load,after of some first page of the project
Solution:
.- modifies the user table
.-creates a field with the name of the data base
.- creates a pages of login outside your project of CCS
.- read the table of users and to obtain the name of the data base
.- keeps the name from the data base in a session variable

sql =SELECT Company, CustomerName FROM lsCustomers WHERE (CustomerName = '" & customername & "')"
Set oRs = oConn.Execute(sql)
session("DataBase")= oRs("CustomerName")

my data bases are called with nick name of clients

.- changes conecction in common.asp file

ConnectionString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Data Source=(local); Initial Catalog=" & session("DataBase")

this way , you can read all them data base, that it wants, with same
proyect of CCS,

Saludos desde Panama


View profile  Send private message
rosorio

Posts: 9
Posted: 10/14/2004, 7:38 AM

The problem is the following one
Conecction with the data base is made in the file common.asp
This file load,after of some first page of the project
Solution:
.- modifies the user table
.-creates a field with the name of the data base
.- creates a pages of login outside your project of CCS
.- read the table of users and to obtain the name of the data base
.- keeps the name from the data base in a session variable

sql =SELECT Company, CustomerName FROM lsCustomers WHERE (CustomerName = '" & customername & "')"
Set oRs = oConn.Execute(sql)
session("DataBase")= oRs("CustomerName")

my data bases are called with nick name of clients

.- changes conecction in common.asp file

ConnectionString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Data Source=(local); Initial Catalog=" & session("DataBase")

this way , you can read all them data base, :-O that it wants, with same
proyect of CCS,

Saludos desde Panama


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.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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