TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
winson lee
NA
6
0
Connecting SQL Server 2005 database from Windows Mobile 6.0
Aug 9 2009 8:10 PM
[code]
_alwaysOpenCon = new SqlConnection(@"Data Source=db.ppp.com.au;database=sales;uid=xxx;pwd=yyy");
_alwaysOpenCon.Open();
[/code]
i use the exact same code for my windows application and it works fine. I try to use the same connection string for my windows mobile application and somehow it fails to connect. The only exception msg given is only "ex.Message = "SqlException". Please advise how I can go about solving this problem. Thanks.
Reply
Answers (
1
)
Insert using OpenRowSet
noob cast object as sqlconnection