AyaNova service management & work order software
AyaNova Support Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Run reindex/reorganization of SQL database to... Expand / Collapse
Author
Message
Posted 8/21/2006 12:03:10 PM
AyaNova Sales & Support

AyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & Support

Group: Administrators
Last Login: Yesterday @ 2:10:09 PM
Posts: 1,834, Visits: 4,252
If using SQL AyaNova (SQL Express or SQL Server), if you encounter a timeout error attempting to print a detailed report template, or create a new detailed report template, perform a reindex / reorganization of the AyaNova database to resolve.

Quote from Microsoft:

The SQL Server Database Engine automatically maintains indexes whenever insert, update, or delete operations are made to the underlying data. Over time (including importing, etc) these modifications can cause the information in the index to become scattered in the database (fragmented). Fragmentation exists when indexes have pages in which the logical ordering, based on the key value, does not match the physical ordering inside the data file. Heavily fragmented indexes can degrade query performance and cause your application to respond slowly. Remedy this by reorganizing the index.

The licensed SQL Server does provide utilities to perform this via its manager.  Easiest is to use the Maintenance Wizard, select to reorganize and reindex and schedule it to re-occur on a regular basis.

If using SQL Express, refer to this very useful topic by Jasper Smith at http://www.sqldbatips.com/showarticle.asp?ID=27 and  http://www.sqldbatips.com/showarticle.asp?ID=29

Basic steps are - refer to the links above for details:

sqlcmd -S .\SQLExpress -i c:\expressmaint.sql

  • when it returns to the DOS command type in at C:\  DOS prompt:

expressmaint -S SQLExpress -D AyaNova -T REINDEX -R c:\reports -RU DAYS -RV 1

  • This attaches to the server SQLExpress, on the database AyaNova, runs the REINDEX code, and puts output into the report file located in C:\Reports.


AyaNova Sales & Technical Support
http://www.ayanova.com
Post #1921
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: AyaNova Sales & Support

Permissions Expand / Collapse

All times are GMT -8:00, Time now is 9:55am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.031. 10 queries. Compression Disabled.