ASP的连接字符串(Active Server Page) [英] Connection string for ASP (Active Server Page)

查看:56
本文介绍了ASP的连接字符串(Active Server Page)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友


我在使用ASP与数据库连接时遇到问题.
我的网站位于一台服务器中,数据库位于另一台服务器中.我想从另一台服务器访问我的数据库.谁能告诉我链接... !!



谢谢

Hello Friends


I have an problem for connection with database using ASP.
i have my website in in one server and my database in another server. i want to access my database from another server. can anyone tell me link for that...!!



Thank You

推荐答案

u可以在您的Web配置文件中设置以下连接字符串. 在此字符串中提供您的数据库服务器的IP地址.


u can set following connection string in your web config file..
in ths string give your ip addresss of database server.


<connectionstrings>
<add name="ConnectionString" connectionstring="Data Source=IP address of database;Connection Timeout=3600;Initial Catalog=Databasename;User ID=sa;Password=pwd" providername="System.Data.SqlClient" />
</connectionstrings>


这篇关于ASP的连接字符串(Active Server Page)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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