Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys my requirement is Lets say I have a Desktop application (C#) and its required to gather information from several users from different locations. But how Could I Do that ? can I Host the DB to a Hosting Site ?if So How we could do that? how could I get the Connection String ?

Thanks a Lot!!!
Posted

You have to use IP Address to connect to remote hosted sql server

Check here -
Data Source=190.190.200.100,1433;Network Library=DBMSSOCN;
Initial Catalog=myDataBase;User ID=myUsername;Password=myPassword;
DBMSSOCN=TCP/IP is how to use TCP/IP instead of Named Pipes. At the end of the Data Source is the port to use. 1433 is the default port for SQL Server.

More details, you can see here
http://www.connectionstrings.com/define-sql-server-network-protocol/[^]

Now for hosting, contact a Sql Server Hosting Service provider and choose a plan and host a sql server. The Service provider will provide you the ipaddress and port which you will use in your connection string.


Other option (most preferable to me) is to use Microsoft Sync Framework which sync server data to your local data. This will be pretty fast and robust compared to connectiong directly through ip.

Hope this info helps!

Thanks,
Cheers
 
Share this answer
 
hi You can try Viritual private server from your service provider
or you can establish your own server through internet using port forwarding your modem for this static IP is must
 
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