连接到asp.net中的本地sql server [英] Connect to local sql server in asp.net

查看:148
本文介绍了连接到asp.net中的本地sql server的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好b $ b

我需要小帮助。 ASP.Net托管应用程序可以连接到我的机器上运行的本地SQLServer。



请告诉我一些如何我可以做到这一点。



请帮助



谢谢

Hi
I need small help . It is possible An ASP.Net hosted application connect to local SQLServer which is running on my machine.

pls Please give me some idea how I can achieve this .

pls Please help

Thanks

推荐答案

实现这一点..您应该可以通过某个网络访问本地计算机..即..您的计算机应该在某个公共网络上(公共访问WAN) IP)...而不是通过Wan IP以及web.config中本地SQL的凭据......连接很容易......
to achieve this.. you should be having access to your local machine via some network.. ie.. your machine should be on some public network (having publicly accessed WAN IP)... and than through that Wan IP along with credentials of your local SQL in "web.config"... connectivity would be easy...


创建一个ConfigurationString,它是xml文件,你必须提供Sql身份验证,因为你可以将你的前端连接到sql。
Create a ConfigurationString which is xml file in that you have to provide the Sql authentication through that you can able to connect your front end with the sql.


这篇关于连接到asp.net中的本地sql server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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