Link to home
Start Free TrialLog in
Avatar of savsoft
savsoftFlag for India

asked on

C#.net Desktop Application

Is there any way that we can store our data to server using Desktop application in C#
Avatar of dj_alik
dj_alik

Designing a Winform in C# and Linking It to a SQL Server Database
http://www.codeguru.com/csharp/csharp/cs_network/database/article.php/c6017
Avatar of savsoft

ASKER

But My sql Server is on web.... i want to store data on web so cani connect desktop application to web data
Remote Sql Connection is what you need. At your connectionstring you should give the Data Source your sql-server's machine ip. Do not forget to assign the default port and to enable TCP/IP Remote Connections. This may help you:

http://www.connectionstrings.com/sql-server-2008

e.g:

Data Source =190.190.200.100,1433; Network Library =DBMSSOCN; Initial Catalog =myDataBase; User ID =myUsername; Password =myPassword;
Avatar of savsoft

ASKER

Please help me out with any connection string and also tell me how to enable TCP/IP connection and assign default port
ASKER CERTIFIED SOLUTION
Avatar of jdruper
jdruper
Flag of Afghanistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Dave Baldwin
Where "on the web" is your SQL Server?  Is it at a hosting company?  If it is, do they allow outside access to it?  Many hosting companies do not.