Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to add areference to SQLClient for Smart Device CE 5.0

Posted on 2008-11-02
8
Medium Priority
?
508 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
Setting up LaraDock for Laravel

Learn how to set up LaraDock in a Laravel project - LaraDock gives us an easy way to run a Laravel application using Docker in a single command.

 
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 2000 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

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

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

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…
In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

722 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