Click here to Skip to main content
15,881,424 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to get stock market data from their server on my page in asp.net 4.0?
Posted
Updated 3-Nov-11 1:10am
v4
Comments
[no name] 3-Nov-11 6:39am    
Edited Question: Removed unnecessary <pre> tag.

1 solution

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...

C#
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"
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900