如何从其他服务器获取数据到asp.net4.0中的我的页面上 [英] how to get data from other server to on my page in asp.net4.0

查看:57
本文介绍了如何从其他服务器获取数据到asp.net4.0中的我的页面上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从asp.net 4.0中我的页面上的服务器获取股票市场数据?

how to get stock market data from their server on my page in asp.net 4.0?

推荐答案

要从保存数据库的其他服务器获取数据,需要这样做...


获取该服务器的连接字符串....

使用该字符串设置数据库连接...

For getting data from other server where your database is held you need to do this...


Get the connection string fro that server....

set the database connection using that string...

To connect to SQL Server running on a remote computer (via an IP address)

oConn.Open "Driver={SQL Server};" & _
           "Server=xxx.xxx.xxx.xxx;" & _
           "Address=xxx.xxx.xxx.xxx,1433;" & _
           "Network=DBMSSOCN;" & _
           "Database=myDatabaseName;" & _
           "Uid=myUsername;" & _
           "Pwd=myPassword"


这篇关于如何从其他服务器获取数据到asp.net4.0中的我的页面上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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