如果 Sql Server的端口不是默认的1433,而是别的,比若说是7878.那连接字符串Cnxn1.ConnectionString = "Provider='sqloledb';Data Source='MySqlServer';" & _
"Initial Catalog='Pubs';Integrated Security='SSPI';"
该如何写呢?有没有Port这个属性?
谢谢!!
"Initial Catalog='Pubs';Integrated Security='SSPI';"
该如何写呢?有没有Port这个属性?
谢谢!!
解决方案 »
- VB内型不匹配问题
- 请教:离心泵叶轮参数优化设计程序
- 如何判断GetOpenFilename的返回值
- 为什么释放控件数组,第一次可以成功释放,但是第二次就不行了?????
- 我的刚装的VB用不成,老是说读内存出错,帮帮忙吧.....
- 请问有哪些可以播放vox语音格式的免费组件!在线等待.急救!
- 请问如何判断输入的text框中是合法的ip地址
- 我作了一个picturebox中放入两个LABEL,我动态生成多个PICTUREBOX控件可里面没有LABEL,请问如何作可以显示出LABEL控件在线等。
- ########### 微软的 BUG 大爆光 ##########
- 怎么得到 Inet 控件 的 Response code
- 谁能帮帮我多谢了
- 在VB中怎么检测是否连通INTERNET?
"Initial Catalog='Pubs';Integrated Security='SSPI';"把‘Data Source='MySqlServer'改成
"Data Source=192.168.4.1,7878"
"Provider=sqloledb;Data Source=190.190.200.100,1433;Network Library=DBMSSOCN;Initial Catalog=pubs;User ID=sa;Password=asdasd;"
(DBMSSOCN=TCP/IP instead of Named Pipes, at the end of the Data Source is the port to use (1433 is the default))