如何使用来自两个不同项目的相同数据库? [英] how to use the same database from two differnent projects?

查看:96
本文介绍了如何使用来自两个不同项目的相同数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

是否有人对如何通过两个不同的项目使用同一数据库有想法?能做到吗?
如果是这样,请帮助我.
在此先感谢您!!!!

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!!!

推荐答案

使您的数据库集中化,并在每个项目中写入相同的连接字符串,这样您就可以在多个项目中使用该数据库.
make your database centralize and write the connectionstring same in each project this way you can use this database from multiple projects.


在每个要为其他项目连接集中式数据库的项目中,都以相同的方式写入连接字符串.
Write the Connection-string as same in each project where the centralized database has to be connected for other projects.


只需在IP地址上使用连接字符串
Siple use the connection string on IP address


这篇关于如何使用来自两个不同项目的相同数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆