本文介绍了连接到远程数据库.mdf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
我开始程序sql数据库并设置所有选项,应用程序连接到本地数据库,但是当它想连接到远程计算机时,随机发生2错误.
1个数据库无法打开
2错误26
我使用虚拟机模拟局域网并使用Windows XP SERVISE2
我设置了一个项目并将其安装在2个Windows中
我认为我的问题来自我的连接字符串;
我的联系是:
SqlConnection("Data Source =.\\ SQLEXPRESS; AttachDbFilename =" + Sourcelocationtxt.Text +"\\ Database1.mdf; Integrated Security = True; User Instance = True");
是真的吗???????
您向我推荐的连接字符串是什么?
您可以为我键入一个真实的连接字符串吗?
谢谢你
我很着急解决方案
如果您是sql的新手,这是一个不错的网站. www.asp/sql-server/videos [ ^ ]
hi i''m begin program sql database and set all of option the application connect to local database but when it want connect to remote computer randomize 2 error occured. 1-data base could not opened 2-error 26 i use virtual machine for simulate lan and use windows XP SERVISE2 i setup a project and install it in 2 windows i think my problem from my connection string; my connection is: SqlConnection("Data Source=.\\SQLEXPRESS;AttachDbFilename="+Sourcelocationtxt.Text+"\\Database1.mdf;Integrated Security=True;User Instance=True"); is it true??????? what you recommend me to connection string? can you type for me a true connection string? thank''s as you I very hurry
解决方案 If you are new to sql this is a good site. www.asp/sql-server/videos[^]更多推荐
连接到远程数据库.mdf
发布评论