Site sponsored by: Idera Try Idera’s new SQL admin toolset
SQL Server Performance

  • Home
  • Articles
  • Forums
  • Tips
  • Quiz
  • FAQ's
  • Blogs
  • Software
  • Books
  • About Us
RSS Feeds
Sign in | Join


Tip Topics

All Tips
ADO.NET / ASP.NET
Administration
Analysis/OLAP Services
Application Development
Configuration
Components
ETL
Hardware
High Availability
Hints
Index
Misc
Operating Systems
Performance Tuning
Replication
T-SQL
Views

Write for Us

Share you SQL Server knowledge with others and raise your profile in the community More...
Latest Articles

Characterizing I/O Workload
Server Audit Specifications in SQL Server 2008
Server and Database Auditing in SQL Server 2008
So, you find yourself On-Call

More     
 
Latest FAQ's

ALTER TABLE SWITCH statement failed because table '%.*ls' has %d columns ...
SQL Server Reporting Server (SSRS) service is failing to start ...
Cannot Start SQL Server Service
Users are able to connect to report manager but not able ...

More     
   
Latest Software Reviews

Spotlight on ApexSQL Doc 2008
ApexSQL Enforce
Embarcadero Change Manager
SQL Server DBA Dashboard

More     

tips >> configuration >> Performance Tuning SQL Server CE

Performance Tuning SQL Server CE

By : Brad McGehee
Feb 01, 2003

In most ways, tuning SQL Server CE is very similar to tuning regular SQL Server programs. For example, the proper use of indexing is critical to the performance of SQL Server CE.

The biggest constraint you will have is a lack of memory on the CE-based computer. Because of the limited amount of RAM available on CE-based computers, you will want to minimize using memory as much as possible. Below are some tips to help you reduce the amount of memory SQL Server CE uses:

  • In your queries, only return the amount of data you need, no more. For example, don't return unused columns or rows.
  • Avoid cursors. But if you have to use one, try to use a forward-only cursor.
  • Try not to use DISTINCT, GROUP BY, or ORDER BY clauses.
  • Write custom code, such as using C++, to write directly to OLE DB, which bypasses some overhead, reducing memory usage.

[2000 CE] More from Microsoft Added 12-8-2000

* * * * *

There can only be one connection from a Windows CE device to a SQL Server database, but there can be multiple recordsets open. To maximize the performance of this single connection, keep the following in mind:

  • Keep the number of open objects to a minimum. Every open object uses additional memory and can contribute to poor performance. Only open objects, such as cursors or recordsets, when you need them, and close them immediately after you are done using them.
     
  • If you open a recordset using ADOCE, open a base table cursor using the adCmdTableDirect flag in order to reduce overhead and boost performance. In addition, base table cursors should be opened using either adOpenDynamic and adLockOptimistic for best performance.

[2000 CE] More from Microsoft Added 8-1-2002


        








Home | Peformance Articles | Audit Articles | Business Intelligence Articles | Clustering Articles | Developer Articles | Reporting Services Articles | DBA Articles | ASP.NET / ADO.NET Articles | DBA FAQ's | Developer Peformance FAQ's | DBA Peformance FAQ's | Developer FAQ's | Clustering FAQ's | Error Messages | Audit Tool Reviews | Backup Tool Reviews | Coding Tool Reviews | Compare Tool Reviews | Documentation Tool Reviews | Design Tool Reviews | Monitoring Tool Reviews | Log Tool Reviews | Reporting Tool Reviews | Clustering Tool Reviews | Security Tool Reviews | Change Management Tool Reviews | Remote Access Tool Reviews | Book Reviews | Security Tool Reviews | QDPMA Performance Tuning | ADO.NET / ASP.NET | Administration | Analysis/OLAP Services | Application Development | Configuration | Components | ETL | Hardware | High Availability | Hints | Index | Misc | Operating Systems | Performance Tuning | Replication | T-SQL | Views


              © 1999-2008 by T10 Media. All rights reserved