Solved

How to add areference to SQLClient for Smart Device CE 5.0

Posted on 2008-11-02
8
488 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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 …
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

943 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now