Solved

How to add areference to SQLClient for Smart Device CE 5.0

Posted on 2008-11-02
8
500 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 
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

Major Incident Management Communications

Major incidents and IT service outages cost companies millions. Often the solution to minimizing damage is automated communication. Find out more in our Major Incident Management Communications infographic.

Question has a verified solution.

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

I recently asked a question (http://www.experts-exchange.com/Programming/Smartphones/Android/Q_28684946.html) about Computer Inventory applications for Mobile Devices.  I was specifically interested in an app I could use on my android phone.  The be…
As the title indicates, I have done this before. It chills me everytime I update the OS on my phone, (http://www.experts-exchange.com/articles/18084/Upgrading-to-Android-5-0-Lollipop.html) because one time I did this and I essentially had a bricked …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Suggested Courses

710 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