Click here to Skip to main content
15,916,835 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
I am trying to connect sql base with my winform app. Base is on sql3.freemysqlhosting.net, i did get next:
- Account number: ............
- Host: sql3.freemysqlhosting.net
- Database name: ............
- Database user: ............
- Database password: ............
- Port number: ............
What is the connection string? I tried this:
C#
SqlCeConnection con = new SqlCeConnection("Data Source=sql3.freemysqlhosting.net;Database=........;User Id=........; Password=.......");

and multiple from this site: http://www.connectionstrings.com/sql-server/[^] and can not figure this out. Get the error, that can not open (connect to) the base.
Any ideas?
Posted
Comments
PIEBALDconsult 4-Apr-14 16:11pm    
Could need the port, I suspect they didn't provide it simply for the fun of it.

You will have to ask your hoster.
 
Share this answer
 
Now i have noticed, code is for MSSql, but i made a MYSql database. Where can i make MSsql database online for free?
 
Share this answer
 
Comments
Member 4347041 5-Apr-14 2:50am    
- Is there a way to connect to MYSql with no connector or do you always need to install it?
- If i use connector for mysql from this site: http://dev.mysql.com/downloads/connector/net/
and after app is finished, will my users need to instal the same connector to use my app or it will be integrated in my app's .exe?

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