[c#] sql base to winform,连接字符串 [英] [c#] sql base to winform, connection string
问题描述
我正在尝试将sql base与我的winform应用程序连接起来。 Base是在sql3.freemysqlhosting.net上,我确实得到了下一个:
- 帐号:............
- 主机:sql3 .freemysqlhosting.net
- 数据库名称:............
- 数据库用户:.......... ..
- 数据库密码:............
- 端口号:............
什么是连接字符串?我试过这个:
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:
SqlCeConnection con = new SqlCeConnection("Data Source=sql3.freemysqlhosting.net;Database=........;User Id=........; Password=.......");
和来自该网站的多个: http://www.connectionstrings.com/sql-server/ [ ^ ]并且无法弄清楚这一点。得到错误,无法打开(连接到)基地。
任何想法?
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?
推荐答案
你将不得不问你的主人。
You will have to ask your hoster.
现在我注意到,代码是针对MSSql的,但我做了一个MYSql数据库。我在哪里可以免费在线制作MSsql数据库?
Now i have noticed, code is for MSSql, but i made a MYSql database. Where can i make MSsql database online for free?
这篇关于[c#] sql base to winform,连接字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!