如何在多个项目中共享sql server数据库 [英] how to share sql server database in multiple projects

查看:149
本文介绍了如何在多个项目中共享sql server数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用了连接字符串,但是假设我正在使用'y'sql server数据库处理'x'项目并且我想将我的项目和数据库移交给其他开发人员那么分享的方式是什么? 'sql server database。





更新:现在我使用了数据库的物理文件,即x.mdf和x_log.ldf和使用该文件进行共享。现在我的问题来自你guyz,是否还有其他方式共享数据库。



ima beginner plz帮帮我...

i have used the connection string but if suppose i am working on 'x' project with 'y' sql server database and i want to hand over my project and database to other developer then what are the ways of sharing that 'y' sql server database.


Update: now i have used the physical files of the database i.e x.mdf & x_log.ldf and used that files for sharing. Now my Question from you guyz is , whether there is any other way of sharing the database.

i m a beginner plz help me...

推荐答案

Web服务

创建可以访问您数据库的服务。

http://en.wikipedia.org/wiki/Web_service [ ^ ]

http://msdn.microsoft.com/en-us/library/ms950421.aspx [ ^ ]



或者更确切地说,所有应用程序都具有相同的连接字符串,就是这样:)



-KR
Web Service.
Create such service that can have access to your database.
http://en.wikipedia.org/wiki/Web_service[^]
http://msdn.microsoft.com/en-us/library/ms950421.aspx[^]

Or rather, all the application would have the same Connection String, That's it :)

-KR


每个应用程序都有相同的连接字符串来连接数据库。完成!



更新:其他开发人员应该可以访问您正在使用的数据库服务器。如果没有,请对数据库进行完整备份并与其他人共享。
Each application will have same connection string to connect to database. Done!

Update: The other developer should have access to database server you are using. If not, take a full backup of database and share it with others.


这篇关于如何在多个项目中共享sql server数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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