如何连接到另一个系统中的MDF [英] how to connect to an mdf which is in another system
本文介绍了如何连接到另一个系统中的MDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人可以简要地向我解释一下如何连接到另一个系统中的mdf吗?
Hi,Could any body explain me in brief about how to connect to an mdf which is in another system?
推荐答案
您可以使用以下连接字符串进行连接:
you can connect using the following connection string:
Server=.\SQLExpress;AttachDbFilename=|DataDirectory|mydbfile.mdf; Database=dbname;Trusted_Connection=Yes;
有关更多信息,请检查:
http://www.connectionstrings.com/sql-server-2005 [
for more info pl check:
http://www.connectionstrings.com/sql-server-2005[^]
这篇关于如何连接到另一个系统中的MDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文