"Fun" with SQLServerCE
"Fun" with SQLServerCE
"Fun" with SQLServerCE
"Fun" with SQLServerCE
"Fun" with SQLServerCE
"Fun" with SQLServerCE "Fun" with SQLServerCE "Fun" with SQLServerCE "Fun" with SQLServerCE "Fun" with SQLServerCE "Fun" with SQLServerCE "Fun" with SQLServerCE "Fun" with SQLServerCE
"Fun" with SQLServerCE "Fun" with SQLServerCE
"Fun" with SQLServerCE
Go Back  Xtreme Visual Basic Talk > > > "Fun" with SQLServerCE


Reply
 
Thread Tools Display Modes
  #1  
Old 01-14-2005, 10:11 PM
skyrender skyrender is offline
Newcomer
 
Join Date: Nov 2004
Posts: 18
Arrow "Fun" with SQLServerCE


I'm currently developing an application for PocketPC using VB.NET and SQLServerCE. The database which I'm using is stored using the .cdb data format (Pocket Access). For some reason, SQLServerCE does not seem to recognize this type of file. Every time I try to open it through VB I get an error message which says that the file is of an unsupported format.

Okay, Here are my questions:
Is SQLServerCE compatible w/ the .cdb data format?
Is there any special connection string which I should be using?
What alternatives to SQLServerCE are there (ADOCE)?

Thanks!
Reply With Quote
  #2  
Old 01-15-2005, 08:39 AM
MKoslof's Avatar
MKoslof"Fun" with SQLServerCE MKoslof is offline
Cum Grano Salis

Retired Moderator
* Guru *
 
Join Date: Jul 2002
Location: Baltimore, Maryland
Posts: 14,636
Default

SqlServerCE can synchronize with an SQL Server database, however you cannot sync with other ODBC sources (you could possibly synchronize your database with SQL Server and then sync with SQL Server CE, etc). Pocket Access, or .cdb, synchronizes with an ODBC source using ActiveSync, but it is not supported by ADO.NET.

The ADOCE wrapper takes advantage of the existing adosync functionality so you can synchronize with any odbc source. The Pocket Access format itself is fairly basic but the engine and ADOCE components are included in ROM on most devices. One disadvantage is there is a big shift between ADO and ADO.NET so the objects methods etc with the wrapper represent the "old" way. However a number of .NET specific features have been added so you can do basic data binding, output to a dataset etc. Another advantage is that you can use any database which has an ole-db provider, so it also supports SQL Server and Oracle lite.

http://www.inthehand.com/dotnet/adoce/
__________________
"Artificial Intelligence is no match for natural stupidity." ~unknown
Reply With Quote
  #3  
Old 01-18-2005, 10:45 PM
skyrender skyrender is offline
Newcomer
 
Join Date: Nov 2004
Posts: 18
Default

Thanks! I'll check out ADOCE.
Reply With Quote
  #4  
Old 01-20-2005, 05:14 PM
MKoslof's Avatar
MKoslof"Fun" with SQLServerCE MKoslof is offline
Cum Grano Salis

Retired Moderator
* Guru *
 
Join Date: Jul 2002
Location: Baltimore, Maryland
Posts: 14,636
Default

No problem. Let us know if you have any more questions or code concerns..I have done a little with the ADOCE.
__________________
"Artificial Intelligence is no match for natural stupidity." ~unknown
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
"Fun" with SQLServerCE
"Fun" with SQLServerCE
"Fun" with SQLServerCE "Fun" with SQLServerCE
"Fun" with SQLServerCE
"Fun" with SQLServerCE
"Fun" with SQLServerCE "Fun" with SQLServerCE "Fun" with SQLServerCE "Fun" with SQLServerCE "Fun" with SQLServerCE "Fun" with SQLServerCE "Fun" with SQLServerCE
"Fun" with SQLServerCE
"Fun" with SQLServerCE
 
"Fun" with SQLServerCE
"Fun" with SQLServerCE
 
-->