This topic is locked

Conditional database connection (ODBC)

9/1/2009 2:32:59 PM
ASPRunnerPro General questions
A
admin author

Hi,
How I can manage multiple connection string for multiple database connection(with different ODBC connections) while my database and all table in each database are exactly same but the data contents changes.
So if we start ASP Runner applications it should ask which company you want to log in and then accordingly it should use the connection string.
Thanks

C
clig 9/2/2009



Hi,
How I can manage multiple connection string for multiple database connection(with different ODBC connections) while my database and all table in each database are exactly same but the data contents changes.
So if we start ASP Runner applications it should ask which company you want to log in and then accordingly it should use the connection string.
Thanks


I'd imagine you would have to pull out dbconnection include from dbcommon then redefine strconnection with a session var else have one application but in multiple directories then in the front end or entrance url add a redirect in login asp event based on values of company name

  • if you have a table of employees with company name you could do a lookup of company name and redirect during login

A
admin author 9/3/2009

Thanks Clig, I will try this way



I'd imagine you would have to pull out dbconnection include from dbcommon then redefine strconnection with a session var else have one application but in multiple directories then in the front end or entrance url add a redirect in login asp event based on values of company name

  • if you have a table of employees with company name you could do a lookup of company name and redirect during login