通过Activesync从Windows ce应用程序连接sql服务器,而不在网络上 [英] connecting sql server from windows ce application through Activesync without being on network

查看:232
本文介绍了通过Activesync从Windows ce应用程序连接sql服务器,而不在网络上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已连接我的摩托罗拉MC3090R有Windows CE 5通过支架(Windows移动设备中心)与我的笔记本电脑有Windows 7(没有网络),我的问题是,我将连接到sql服务器(它在我的笔记本电脑)从我的掌上电脑应用程序?什么是我的连接字符串在我的掌上电脑应用程序?因为没有网络,我将在连接字符串中使用什么?

I've connected my Motorola MC3090R having Windows CE 5 through cradle (Windows Mobile Device Center) with my laptop having Windows 7 (there is no network), my question is that how i will connect to sql server (it's on my laptop) from my handheld app? what will be my connection string inside my handheld app? as there is no network what ip i will use in the connection string?

请帮助

推荐答案

我用这个连接字符串解决了。

I solved it with this connection string.

m_Desktopconn = New SqlConnection(
  "Data Source=192.168.55.100,1433;Initial Catalog=Testing;Persist Security Info=True;User ID=sa;Password=sa;")

我有两个实例MYPC \SQL2005& MYPC \SQL2008,然后在MYPC(无实例)上安装SQL 2005 Express

I had two instances MYPC\SQL2005 & MYPC\SQL2008, and then installed SQL 2005 Express on MYPC (Without instance)

这篇关于通过Activesync从Windows ce应用程序连接sql服务器,而不在网络上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆