Quantcast
Channel: Foro de SQL Server Data Access
Viewing all articles
Browse latest Browse all 158

Connect to SQL Server 2005 express From C#.Net Windows Application Via Internet

$
0
0

I've developed a windows application using C#.Net(VS 2008) which uses MS Sql Server 2005 as server. It is running properly in LAN. I'm using SQL Server authentication to connect the DB. SO the connection String looks like

"initial catalog=TestDB;data source=" compName/SQLExpressRAD;Connect Timeout=30;User Id=sa;Password=123456;"

MS SQL Server 2005 installed in a PC running Windows Vista which is work station having a static IP address. So First I tried to connect from SQL Server Management Express using the following settings.

SQL Server Authentication

User Name  sa

Password abcdef

Server Name  10.xx.x.xx/compName/SQLExpressRAD,51267

 

I've added the port 51267 in server, TCP/IP enabled, and created the rule in firewall to open the port..

Referred :- http://msdn.microsoft.com/en-us/library/cc646023.aspx

But I was unable to connect it. Now, my request is "How can I connect to that server from my application?". Please give the instructions to configure the DB and the proper Connection String..

 

Note:- Is there anything else I must change in my application in order send and receive data via internet. I came a cross something like serialization using XML or something..

 


Viewing all articles
Browse latest Browse all 158

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>