.net中的共享数据丢失问题 [英] shared databade problem in .net

查看:95
本文介绍了.net中的共享数据丢失问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的数据库位于共享文件夹中,我想从我的系统访问该数据.什么是那个的SQL连接字符串.我厌倦了datasource =共享数据库IP,但无法正常工作.

my database in shared folder, i want to access that data dase from my syatem. what is the sql connection string for that one. i tired datasource= shared database IP but not working.

推荐答案

如果您将Sql Server用作数据库,则永远不要共享数据文件夹文件在哪里.除了Sql Server引擎,没有人需要访问这些文件.

对于连接字符串,您可以使用IP地址,服务器名称等.只需确保:
-您的防火墙可让您与端口1433通信
-如果使用非标准端口,请在连接字符串(和防火墙)中指定它

有关连接字符串,请参见: http://www.connectionstrings.com/sql-server-2008 [ ^ ]
If you''re using Sql Server as the database, don''t never ever share the data folder where the files are. No-one needs to access those files but the Sql Server engine.

for the connection string you can use IP adress, server name etc. Just make sure that:
- your firewall lets you communicate to port 1433
- if non-standard port is used, specify it in the connection string (and in the firewall)

For the connection string, see: http://www.connectionstrings.com/sql-server-2008[^]


这篇关于.net中的共享数据丢失问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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