Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i have a problem,i want to create connection from form application in c# to database in internet host?
tancks.
Posted
Comments
Sergey Alexandrovich Kryukov 20-Aug-12 2:42am    
Despite the question mark, this is not a question. Do you have a database server directly published on Internet (without a separate front end) or what?
--SA

1 solution

Here you have a lot of connection string samples for several database servers: http://www.connectionstrings.com/[^]. Choose the proper one.
But be aware of followings:
- It is unlikely, that a provider will keep open the tcp ports necessary for a database connection to be accessible from internet. It is more likely, that you will be provided the connection string you can use from "inside", and you will not be able to pass the boundaries of that provider - in neither direction.
- Integrated authentication methods can not be used over internet, only in domain or local environment, thus you will need a username and a password
 
Share this answer
 
v2

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