Solved

How to add areference to SQLClient for Smart Device CE 5.0

Posted on 2008-11-02
8
491 Views
Last Modified: 2013-12-27
How do I add areference to SQLClient for Smart Device CE 5.0?
Just adding using System.Data.SQLClient to my code doesn't work.
I must need to reference and or install an assembly.  I've searched for a solution, but haven't found clear steps to do this.
0
Comment
Question by:GaryHoff
  • 4
  • 3
8 Comments
 
LVL 24

Expert Comment

by:alexey_gusev
ID: 22862080
add System.Data.SqlServerCe
0
 
LVL 1

Author Comment

by:GaryHoff
ID: 22863005
System.Data.SqlServerCe is not a valid namespace either. There are no options in the pulldown when I enter System.Data.  it's like there are no namespaces or classes under Data.  Clearly, there must be an assembly reference or something I must install.  I'll want to access SQL Server 2003 running on a server from the smart device running CE 5.0.
0
 
LVL 1

Author Comment

by:GaryHoff
ID: 22872458
I figured it out. I had to add the reference manually.  First search for the file System.Data.SqlClient.dll. I found it in "C:\Program Files\Microsoft SQL Server Compact Edition\v3.1\SDK\bin
\Client\v2.0".  Go to the project solution explorer--> references --> right click --> Add Refrences, browse and navigate to that file and select it.
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 24

Expert Comment

by:alexey_gusev
ID: 22872565
this question might be argued as if post #22862080 does mention "add" :)
0
 
LVL 1

Author Comment

by:GaryHoff
ID: 22872735
Add from where? I knew I needed to add a reference. The key is from where.
SqlServerCe is for Compact SQL, I appreciate the effort, but the reply did not help me.
0
 
LVL 24

Accepted Solution

by:
alexey_gusev earned 500 total points
ID: 22872792
SqlServerCe isn't JUST for Compact SQL, generally it is for SQL Server under Windows CE. you can find few editions available, including that one shipped with Visual Studio 2005 (just look within its folder tree).

Anyway, my objection was rather rhetoric :) And to be honest, the question itself was not quite clear about you wanted to know how to add a reference to the project literally. The phrase "Just adding using System.Data.SQLClient to my code doesn't work." is ambiguous. I agree that my response was not enough straightforward to inspire you to click Add->Reference etc :)

So for the future question, please be more specific
0
 
LVL 1

Author Comment

by:GaryHoff
ID: 22873108
True, If I would of added that it didn't show up in the reference assembly list that would of helped, but I didn't even know that at the time I did the post. SqlServerCe didn't show up either. Seems odd that those options wouldn't be there by default.  I had go go through about 30 google searches before I put enough info together to figure it out.  I'll give you the points anyway, it did give me something else to search on.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Preface: This article is part of a series focused on cross platform mobile app development (specifically Android and iOS) using the Alloy framework and Titanium Studio made by Appcelerator (https://www.appcelerator.com/). This article presumes a wor…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question