远程服务器的SQL Server Compact连接字符串

编程入门 行业动态 更新时间:2024-10-23 08:38:07
本文介绍了远程服务器的SQL Server Compact连接字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好! 我真的很想知道什么是连接到SQL Server Compact的正确连接字符串. 我使用此字符串连接本地文件.SDF,但现在我需要使用远程服务器进行连接,因为我无法在该计算机上安装服务器.可以吗?如果是,请您帮我连接字符串吗?

Hey guys! I''d really like to know what''s the right connection string to connect to SQL Server Compact. I was using this string to connect in the local file .SDF, but now I need to connect using a remote server, because I can''t install the server in this machine.. is that possible? if yes, please could you help me with the connection string?

connectionString="Data Source=test.sdf;Password=test123; Persist Security Info=False;"

因此,我将服务器安装在第二台计算机上,而目前,我现在无法在第二台计算机上使用已安装的服务器进行连接吗?作为服务器必须采取行动... 对不起,我的英语. 我已经尝试过了,但是我知道这是错误的

So, I install the server in the second machine, and in the current, I can''t, now, is that possible connect using the installed server in the second? As a server must act.. Sorry for my english. i''ve tried this, but i know it''s wrong

connectionstring="Data Source=SOMINATRIS\\SQLEXPRESS;Initial Catalog=test.sdf;Persist Security Info=False"

Thanks in adv!

推荐答案

您是否检查过文档甚至网站? www.connectionstrings/sql-server-2005-ce [ ^ ] 基本上只是传递到数据库文件的标准路径,如"\\ server \ share \ path \ dbfile" Have you checked the docs or even the site; www.connectionstrings/sql-server-2005-ce[^] Basically just pass in a fully qualified path to the database file as in "\\server\share\path\dbfile"

更多推荐

远程服务器的SQL Server Compact连接字符串

本文发布于:2023-10-30 22:46:41,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1544220.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:字符串   服务器   Server   SQL   Compact

发布评论

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

>www.elefans.com

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