Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have a web application that will be use by multiple company.For this purpose I create n database.

Now I want according to the company connection string generate.
How can we do this??

Or What is best option to do this type of application.?


PLEASE GIVE ME BEST CHOICE.



THNAX
SEEMA
Posted
Comments
Rajesh Sajjanar 23-Jul-10 15:51pm    
HiThe application should support for which database server SQL/ Oracle or any database server ?

  1. Allow the user to enter database information.
  2. Create pre-defined users (aka, companies) and, when the user logs in, have a database associated with that user.
  3. Dynamically create a database at runtime then store the connection details. This is especially easy with SQL Server CE.
 
Share this answer
 
Hi
Database connection string you can set it in web.config file provided your application is for one database server only for ex - SQL Server.
if application should work irrespective of database server likr sqlsever, oracle, DB2 etc then you can use ADO.Net factory classes, you can do this using namespace Syste.Data.Common
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900