PC Review


Reply
Thread Tools Rate Thread

Accessing a local database from C#

 
 
Juan
Guest
Posts: n/a
 
      9th Mar 2004
Hi everyone,

I am pretty new to C# developing form mobile devices. I have an Access
database that I have syncronised through ActiveSync to my PocketPc. Now,
using VS.NET 2003 I want to develop a simple app that retreives data from
the database.

Is this possible at all, or do I need SQL CE server? Where can I find this
server?

Are there any samples on how to acess an Access database?

Thanks, from Spain


 
Reply With Quote
 
 
 
 
Juan
Guest
Posts: n/a
 
      9th Mar 2004
Sorry, I should have looked more carefully... I already know where to get
ahold of SLQ CE.

But I still donīt know how to use my Access imported Databases.
Juan wrote:
:: Hi everyone,
::
:: I am pretty new to C# developing form mobile devices. I have an
:: Access database that I have syncronised through ActiveSync to my
:: PocketPc. Now, using VS.NET 2003 I want to develop a simple app that
:: retreives data from the database.
::
:: Is this possible at all, or do I need SQL CE server? Where can I
:: find this server?
::
:: Are there any samples on how to acess an Access database?
::
:: Thanks, from Spain


 
Reply With Quote
 
Chris Tacke, eMVP
Guest
Posts: n/a
 
      9th Mar 2004
There is no inherent Pocket Access class library. InTheHand has one.

-Chris


"Juan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Sorry, I should have looked more carefully... I already know where to get
> ahold of SLQ CE.
>
> But I still donīt know how to use my Access imported Databases.
> Juan wrote:
> :: Hi everyone,
> ::
> :: I am pretty new to C# developing form mobile devices. I have an
> :: Access database that I have syncronised through ActiveSync to my
> :: PocketPc. Now, using VS.NET 2003 I want to develop a simple app that
> :: retreives data from the database.
> ::
> :: Is this possible at all, or do I need SQL CE server? Where can I
> :: find this server?
> ::
> :: Are there any samples on how to acess an Access database?
> ::
> :: Thanks, from Spain
>
>



 
Reply With Quote
 
Peter Foot [MVP]
Guest
Posts: n/a
 
      9th Mar 2004
Pocket Access is not supported directly by the .NET Compact Framework,
however you can use the ADOCE control by creating a wrapper to handle
interop with the COM control (.NETCF has no built in COM/ActiveX interop).
We produce such a wrapper, there is an example of it's use in this article:-
http://msdn.microsoft.com/library/de...ad10222003.asp

Peter

--
Peter Foot
Windows Embedded MVP
OpenNETCF.org Senior Advisor
www.inthehand.com | www.opennetcf.org

"Juan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Sorry, I should have looked more carefully... I already know where to get
> ahold of SLQ CE.
>
> But I still donīt know how to use my Access imported Databases.
> Juan wrote:
> :: Hi everyone,
> ::
> :: I am pretty new to C# developing form mobile devices. I have an
> :: Access database that I have syncronised through ActiveSync to my
> :: PocketPc. Now, using VS.NET 2003 I want to develop a simple app that
> :: retreives data from the database.
> ::
> :: Is this possible at all, or do I need SQL CE server? Where can I
> :: find this server?
> ::
> :: Are there any samples on how to acess an Access database?
> ::
> :: Thanks, from Spain
>
>



 
Reply With Quote
 
Juan
Guest
Posts: n/a
 
      9th Mar 2004
If itīs not supported by .Net framework, what's the point on having Access
databases in the Pocket PC? You canīt open them, not even programatically???
I donīt understand.....

Peter Foot [MVP] wrote:
:: Pocket Access is not supported directly by the .NET Compact
:: Framework, however you can use the ADOCE control by creating a
:: wrapper to handle interop with the COM control (.NETCF has no built
:: in COM/ActiveX interop). We produce such a wrapper, there is an
:: example of it's use in this article:-
::
http://msdn.microsoft.com/library/de...ad10222003.asp
::
:: Peter
::
:: --
:: Peter Foot
:: Windows Embedded MVP
:: OpenNETCF.org Senior Advisor
:: www.inthehand.com | www.opennetcf.org
::
:: "Juan" <(E-Mail Removed)> wrote in message
:: news:(E-Mail Removed)...
::: Sorry, I should have looked more carefully... I already know where
::: to get ahold of SLQ CE.
:::
::: But I still donīt know how to use my Access imported Databases.
::: Juan wrote:
::::: Hi everyone,
:::::
::::: I am pretty new to C# developing form mobile devices. I have an
::::: Access database that I have syncronised through ActiveSync to my
::::: PocketPc. Now, using VS.NET 2003 I want to develop a simple app
::::: that retreives data from the database.
:::::
::::: Is this possible at all, or do I need SQL CE server? Where can I
::::: find this server?
:::::
::::: Are there any samples on how to acess an Access database?
:::::
::::: Thanks, from Spain


 
Reply With Quote
 
Chris Tacke, eMVP
Guest
Posts: n/a
 
      9th Mar 2004
You can use eVC just fine, there's just no managed provider. The "point" of
having it is for backward compatibility. Pocket Access as a data engine
will become obsolete in a future version of Pocket PC.

--
Chris Tacke, eMVP
Co-Founder and Advisory Board Member
www.OpenNETCF.org
---
Windows CE Product Manager
Applied Data Systems
www.applieddata.net


"Juan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> If itīs not supported by .Net framework, what's the point on having Access
> databases in the Pocket PC? You canīt open them, not even

programatically???
> I donīt understand.....
>
> Peter Foot [MVP] wrote:
> :: Pocket Access is not supported directly by the .NET Compact
> :: Framework, however you can use the ADOCE control by creating a
> :: wrapper to handle interop with the COM control (.NETCF has no built
> :: in COM/ActiveX interop). We produce such a wrapper, there is an
> :: example of it's use in this article:-
> ::
>

http://msdn.microsoft.com/library/de...ad10222003.asp
> ::
> :: Peter
> ::
> :: --
> :: Peter Foot
> :: Windows Embedded MVP
> :: OpenNETCF.org Senior Advisor
> :: www.inthehand.com | www.opennetcf.org
> ::
> :: "Juan" <(E-Mail Removed)> wrote in message
> :: news:(E-Mail Removed)...
> ::: Sorry, I should have looked more carefully... I already know where
> ::: to get ahold of SLQ CE.
> :::
> ::: But I still donīt know how to use my Access imported Databases.
> ::: Juan wrote:
> ::::: Hi everyone,
> :::::
> ::::: I am pretty new to C# developing form mobile devices. I have an
> ::::: Access database that I have syncronised through ActiveSync to my
> ::::: PocketPc. Now, using VS.NET 2003 I want to develop a simple app
> ::::: that retreives data from the database.
> :::::
> ::::: Is this possible at all, or do I need SQL CE server? Where can I
> ::::: find this server?
> :::::
> ::::: Are there any samples on how to acess an Access database?
> :::::
> ::::: Thanks, from Spain
>
>



 
Reply With Quote
 
Jamie Macleod
Guest
Posts: n/a
 
      9th Mar 2004
So... what will the data engine be?

"Chris Tacke, eMVP" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> You can use eVC just fine, there's just no managed provider. The "point"

of
> having it is for backward compatibility. Pocket Access as a data engine
> will become obsolete in a future version of Pocket PC.
>
> --
> Chris Tacke, eMVP
> Co-Founder and Advisory Board Member
> www.OpenNETCF.org
> ---
> Windows CE Product Manager
> Applied Data Systems
> www.applieddata.net
>
>
> "Juan" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > If itīs not supported by .Net framework, what's the point on having

Access
> > databases in the Pocket PC? You canīt open them, not even

> programatically???
> > I donīt understand.....
> >
> > Peter Foot [MVP] wrote:
> > :: Pocket Access is not supported directly by the .NET Compact
> > :: Framework, however you can use the ADOCE control by creating a
> > :: wrapper to handle interop with the COM control (.NETCF has no built
> > :: in COM/ActiveX interop). We produce such a wrapper, there is an
> > :: example of it's use in this article:-
> > ::
> >

>

http://msdn.microsoft.com/library/de...ad10222003.asp
> > ::
> > :: Peter
> > ::
> > :: --
> > :: Peter Foot
> > :: Windows Embedded MVP
> > :: OpenNETCF.org Senior Advisor
> > :: www.inthehand.com | www.opennetcf.org
> > ::
> > :: "Juan" <(E-Mail Removed)> wrote in message
> > :: news:(E-Mail Removed)...
> > ::: Sorry, I should have looked more carefully... I already know where
> > ::: to get ahold of SLQ CE.
> > :::
> > ::: But I still donīt know how to use my Access imported Databases.
> > ::: Juan wrote:
> > ::::: Hi everyone,
> > :::::
> > ::::: I am pretty new to C# developing form mobile devices. I have an
> > ::::: Access database that I have syncronised through ActiveSync to my
> > ::::: PocketPc. Now, using VS.NET 2003 I want to develop a simple app
> > ::::: that retreives data from the database.
> > :::::
> > ::::: Is this possible at all, or do I need SQL CE server? Where can I
> > ::::: find this server?
> > :::::
> > ::::: Are there any samples on how to acess an Access database?
> > :::::
> > ::::: Thanks, from Spain
> >
> >

>
>



 
Reply With Quote
 
Juan
Guest
Posts: n/a
 
      9th Mar 2004
So I'd be better off using XML or SQL as a data provider...

Thanks for the explanations, some stuff is pretty obscure for me...

Chris Tacke, eMVP wrote:
:: You can use eVC just fine, there's just no managed provider. The
:: "point" of having it is for backward compatibility. Pocket Access
:: as a data engine will become obsolete in a future version of Pocket
:: PC.
::
:: --
:: Chris Tacke, eMVP
:: Co-Founder and Advisory Board Member
:: www.OpenNETCF.org
:: ---
:: Windows CE Product Manager
:: Applied Data Systems
:: www.applieddata.net
::
::
:: "Juan" <(E-Mail Removed)> wrote in message
:: news:(E-Mail Removed)...
::: If itīs not supported by .Net framework, what's the point on having
::: Access databases in the Pocket PC? You canīt open them, not even
::: programatically??? I donīt understand.....
:::
::: Peter Foot [MVP] wrote:
::::: Pocket Access is not supported directly by the .NET Compact
::::: Framework, however you can use the ADOCE control by creating a
::::: wrapper to handle interop with the COM control (.NETCF has no
::::: built in COM/ActiveX interop). We produce such a wrapper, there
::::: is an example of it's use in this article:-
:::::
:::
::
http://msdn.microsoft.com/library/de...ad10222003.asp
:::::
::::: Peter
:::::
::::: --
::::: Peter Foot
::::: Windows Embedded MVP
::::: OpenNETCF.org Senior Advisor
::::: www.inthehand.com | www.opennetcf.org
:::::
::::: "Juan" <(E-Mail Removed)> wrote in message
::::: news:(E-Mail Removed)...
:::::: Sorry, I should have looked more carefully... I already know
:::::: where to get ahold of SLQ CE.
::::::
:::::: But I still donīt know how to use my Access imported Databases.
:::::: Juan wrote:
:::::::: Hi everyone,
::::::::
:::::::: I am pretty new to C# developing form mobile devices. I have an
:::::::: Access database that I have syncronised through ActiveSync to
:::::::: my PocketPc. Now, using VS.NET 2003 I want to develop a simple
:::::::: app that retreives data from the database.
::::::::
:::::::: Is this possible at all, or do I need SQL CE server? Where can
:::::::: I find this server?
::::::::
:::::::: Are there any samples on how to acess an Access database?
::::::::
:::::::: Thanks, from Spain


 
Reply With Quote
 
Ginny Caughey [MVP]
Guest
Posts: n/a
 
      9th Mar 2004
Hi Jamie,

A future version of SqlCe.
--
Ginny Caughey
..Net Compact Framework MVP

"Jamie Macleod" <(E-Mail Removed)> wrote in message
news:eU%23%(E-Mail Removed)...
> So... what will the data engine be?
>
> "Chris Tacke, eMVP" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > You can use eVC just fine, there's just no managed provider. The

"point"
> of
> > having it is for backward compatibility. Pocket Access as a data engine
> > will become obsolete in a future version of Pocket PC.
> >
> > --
> > Chris Tacke, eMVP
> > Co-Founder and Advisory Board Member
> > www.OpenNETCF.org
> > ---
> > Windows CE Product Manager
> > Applied Data Systems
> > www.applieddata.net
> >
> >
> > "Juan" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > If itīs not supported by .Net framework, what's the point on having

> Access
> > > databases in the Pocket PC? You canīt open them, not even

> > programatically???
> > > I donīt understand.....
> > >
> > > Peter Foot [MVP] wrote:
> > > :: Pocket Access is not supported directly by the .NET Compact
> > > :: Framework, however you can use the ADOCE control by creating a
> > > :: wrapper to handle interop with the COM control (.NETCF has no built
> > > :: in COM/ActiveX interop). We produce such a wrapper, there is an
> > > :: example of it's use in this article:-
> > > ::
> > >

> >

>

http://msdn.microsoft.com/library/de...ad10222003.asp
> > > ::
> > > :: Peter
> > > ::
> > > :: --
> > > :: Peter Foot
> > > :: Windows Embedded MVP
> > > :: OpenNETCF.org Senior Advisor
> > > :: www.inthehand.com | www.opennetcf.org
> > > ::
> > > :: "Juan" <(E-Mail Removed)> wrote in message
> > > :: news:(E-Mail Removed)...
> > > ::: Sorry, I should have looked more carefully... I already know where
> > > ::: to get ahold of SLQ CE.
> > > :::
> > > ::: But I still donīt know how to use my Access imported Databases.
> > > ::: Juan wrote:
> > > ::::: Hi everyone,
> > > :::::
> > > ::::: I am pretty new to C# developing form mobile devices. I have an
> > > ::::: Access database that I have syncronised through ActiveSync to my
> > > ::::: PocketPc. Now, using VS.NET 2003 I want to develop a simple app
> > > ::::: that retreives data from the database.
> > > :::::
> > > ::::: Is this possible at all, or do I need SQL CE server? Where can I
> > > ::::: find this server?
> > > :::::
> > > ::::: Are there any samples on how to acess an Access database?
> > > :::::
> > > ::::: Thanks, from Spain
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Chris Tacke, eMVP
Guest
Posts: n/a
 
      9th Mar 2004
As announced at PDC, eDB is replacing CEDB in Macallan.

--
Chris Tacke, eMVP
Co-Founder and Advisory Board Member
www.OpenNETCF.org
---
Windows CE Product Manager
Applied Data Systems
www.applieddata.net


"Jamie Macleod" <(E-Mail Removed)> wrote in message
news:eU%23%(E-Mail Removed)...
> So... what will the data engine be?
>
> "Chris Tacke, eMVP" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > You can use eVC just fine, there's just no managed provider. The

"point"
> of
> > having it is for backward compatibility. Pocket Access as a data engine
> > will become obsolete in a future version of Pocket PC.
> >
> > --
> > Chris Tacke, eMVP
> > Co-Founder and Advisory Board Member
> > www.OpenNETCF.org
> > ---
> > Windows CE Product Manager
> > Applied Data Systems
> > www.applieddata.net
> >
> >
> > "Juan" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > If itīs not supported by .Net framework, what's the point on having

> Access
> > > databases in the Pocket PC? You canīt open them, not even

> > programatically???
> > > I donīt understand.....
> > >
> > > Peter Foot [MVP] wrote:
> > > :: Pocket Access is not supported directly by the .NET Compact
> > > :: Framework, however you can use the ADOCE control by creating a
> > > :: wrapper to handle interop with the COM control (.NETCF has no built
> > > :: in COM/ActiveX interop). We produce such a wrapper, there is an
> > > :: example of it's use in this article:-
> > > ::
> > >

> >

>

http://msdn.microsoft.com/library/de...ad10222003.asp
> > > ::
> > > :: Peter
> > > ::
> > > :: --
> > > :: Peter Foot
> > > :: Windows Embedded MVP
> > > :: OpenNETCF.org Senior Advisor
> > > :: www.inthehand.com | www.opennetcf.org
> > > ::
> > > :: "Juan" <(E-Mail Removed)> wrote in message
> > > :: news:(E-Mail Removed)...
> > > ::: Sorry, I should have looked more carefully... I already know where
> > > ::: to get ahold of SLQ CE.
> > > :::
> > > ::: But I still donīt know how to use my Access imported Databases.
> > > ::: Juan wrote:
> > > ::::: Hi everyone,
> > > :::::
> > > ::::: I am pretty new to C# developing form mobile devices. I have an
> > > ::::: Access database that I have syncronised through ActiveSync to my
> > > ::::: PocketPc. Now, using VS.NET 2003 I want to develop a simple app
> > > ::::: that retreives data from the database.
> > > :::::
> > > ::::: Is this possible at all, or do I need SQL CE server? Where can I
> > > ::::: find this server?
> > > :::::
> > > ::::: Are there any samples on how to acess an Access database?
> > > :::::
> > > ::::: Thanks, from Spain
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
creating window service to synchronize local database toserver database sujatha k Microsoft C# .NET 5 1st Feb 2011 06:00 AM
Accessing Remote MDB Database from Local Computer chipbeck@gmail.com Microsoft Excel Programming 1 9th Feb 2006 07:11 PM
RE: Problems changing from accessing server to local database Kevin Boske - [MS] Microsoft Dot NET Compact Framework 0 29th Aug 2003 12:55 AM
Problems changing from accessing server to local database Butt Chin Chuan Microsoft Dot NET Compact Framework 0 21st Aug 2003 07:21 PM
minimum xpe support accessing database using ADO, DAO or other database engine cowly Windows XP Embedded 1 12th Aug 2003 07:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:00 PM.