|
-
Nov 2nd, 2005, 04:50 AM
#1
Thread Starter
Hyperactive Member
db design consideration
Hi,
I'm new to mobile development and currently we will adopt the .NET CF solution on pocket pc to develop a program to show customer information for our client.
I know that there is a SQL Server CE version running on .NET CF. When I write db related codes, is it just like say VB.NET, use dataadapter to send SQL to retrieve record from SQL CE?
In general, when designing db for mobile device, should we minimize join and complexity of SQL? If so, I may consider de-normalize some of my tables.
Please advise, thx!
-
Nov 2nd, 2005, 07:11 AM
#2
Fanatic Member
Re: db design consideration
Hi there,
For .Net CF i would not use DataAdapters the whole time, unless you need to populate datasets and datagrids. These are far more heavy on memory than the SQLCeDataReader which is more faster and efficent. It all depends on your needs
SQLServerCE is quite good as you can use Replication, Remote Date Access, have indexes etc.....
However in terms of queries it can be quiet limited in terms of aggregate functions
also Inner Selects are not allowed
You can still preforms Joins in SQLServerCE
Some Links
http://www.microsoft.com/sql/ce/techinfo/20bol.mspx
http://msdn.microsoft.com/library/de..._functions.asp
http://msdn.microsoft.com/library/de...qlserverce.asp
Barry
Visual Studio .NET 2008/Visual Studio .NET 2005/Visual Studio .NET 2003
.NET Framework 3.0 2.0 1.1/ASP.Net 3.0 2.0 1.1/Compact Framework 1.0
SQL Server 2005/2000/SQL Server CE 2.0
If you like, rate this post
Compact Framework for Beginners
-
Nov 4th, 2005, 06:36 PM
#3
Re: db design consideration
Speed is more of an issue in CF (as Strider alluded to when talking about the problems with DataAdapters). If you have not used DataReaders, or returning scalar values, now would be an excellent time to learn. You very rarely need much information returned from a query in CF, because the screen size limits the number of user controls you can show. Therefore, for any one screen, you won't get very much data (usually), and returning scalar values becomes a better and faster option in some cases.
My usual boring signature: Nothing
 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|