Click here to Skip to main content
15,909,827 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

Does any body have an idea about how to use the same database by 2 different projects? can this be done?
If so please help me.
Thanks in Advance!!!
Posted
Updated 3-Jul-11 19:59pm
v3
Comments
walterhevedeich 4-Jul-11 1:43am    
help you with what? Of course it is possible. You might want to clarify your scenario further.

make your database centralize and write the connectionstring same in each project this way you can use this database from multiple projects.
 
Share this answer
 
v3
Comments
RaviRanjanKr 4-Jul-11 2:23am    
Never use "pre" tags for normal sentences. its only use for Codes.
Sachin__Sharma 4-Jul-11 2:29am    
Ok dear.
Write the Connection-string as same in each project where the centralized database has to be connected for other projects.
 
Share this answer
 
Siple use the connection string on IP address
 
Share this answer
 
If you are thinking of an enterprise application, then go for a single Class library, which can do this for you.

Read below for an overview.
Create a single class library, which will have the necessary control over the DB. Create connection, and all CRUD operations that might be needed for all other applications within the enterprise.

Allow your two other applications to use this Class library (DLL) to perform any DB activities.

Cheers
- Balaji.
 
Share this answer
 

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