Solved

How to add areference to SQLClient for Smart Device CE 5.0

Posted on 2008-11-02
8
486 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

With Windows Embedded Handheld, called Windows Mobile, Microsoft re-designed the user interface. The Start Icon moved down to the bottom, inside the menu bar area.   If you need to hide the Start Icon and/or the SIP (soft input panel, softwar…
Let me explain this picture a little bit.  First, in case you haven't already guessed, you are looking at my 2 phones, an Android Samsung Galaxy S5 on the left and an iPhone 5 on the right.  They are on their respective cradles on my desk.  But, you…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

708 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

14 Experts available now in Live!

Get 1:1 Help Now