SQL Server Performance

  • Home
  • Articles
  • Forums
  • Tips
  • Training
  • 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

USEFUL SITES :

ASP.NET Tutorials
Windows and SQL Azure Tutorials
Cloud Hosting Magazine
SharePoint Tutorials
Windows Server Help

Write for Us

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

A High Level Comparison Between Oracle and SQL Server - Part ...
A High Level Comparison Between Oracle and SQL Server - Part ...
A High Level Comparison Between Oracle and SQL Server - Part ...
A High Level Comparison Between Oracle and SQL Server

More     
 
Latest FAQ's

Add Node to A SQL Server failover Cluster failed with invalid ...
SQL Server Destination remote server error
Setting Up Data And Log Files For SQL Server
Will Check Constraints Improve Database Performance?

More     
   
Latest Software Reviews

dbForge Review
Spotlight on ApexSQL Diff - Server-based database comparison tool ...
Spotlight on ApexSQL Data Diff - Server-based database comparison tool ...
Spotlight on ApexSQL Doc 2008

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


        








C# Help and Tutorials | PHP MySQL Tutorial | Sharepoint Tutorial | Azure Tutorial | Cloud Hosting Magazine | ASP.NET Tutorials | Windows Server Help | Windows Phone Pro | Silverlight Ace | Visual Studio Tutorials | Home | Peformance Articles | Audit Articles | Business Intelligence Articles | Clustering Articles | Developer Articles | Reporting Services Articles | DBA Articles | ASP.NET / ADO.NET Articles | SQL Server Training Videos | 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 | 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


              © 2010 Jude O'Kelly. All rights reserved