连接到远程数据库.mdf

编程入门 行业动态 更新时间:2024-10-18 00:31:26
本文介绍了连接到远程数据库.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

本文发布于:2023-10-18 12:01:13,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1504174.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:连接到   数据库   mdf

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!