مدونة منذر اسامة

العودة   منتديات جريت بلينز العربية Great Plains For Arab > منتدى مطوري جريت بلينز > منتدى أكواد ومواضيع الـ SQL Server

الملاحظات

منتدى أكواد ومواضيع الـ SQL Server يتعامل برنامج جريت بلينز مع أقوى قواعد البيانات وهي SQL_Server
سنناقش في هذا المنتدى المواضيع التي تتعلق بخادم قواعد البيانات من مشاكل وحلول وأكواد تضفي طابع الإحترافي لمطوري جريت بلينز

إضافة رد
 
أدوات الموضوع انواع عرض الموضوع
قديم 16-Jun-2010, 02:42 PM   #1
as_radwan
عضو مميز
 
تاريخ التسجيل: Nov 2007
المشاركات: 255
من مواضيعي  
Post صيانة للبرنامج عن طريق ال SQL Server

Recommended Maintenance with Microsoft SQL Server for Microsoft Dynamics GP Databases
Last Modified 03/05/2010
Posted 21/04/2010
Database maintenance helps keep the inner workings of Microsoft SQL Server and the Microsoft Dynamics GP databases running at their peak level. We recommend that you use the following SQL Server maintenance procedures:


Use database consistency check commands
Update statistics
Recompile stored procedures
We recommend that you perform these maintenance procedures weekly for the DYNAMICS database and all company databases. However, you can vary this frequency based on your environment and the activity each database receives. We also recommend that you stagger these maintenance procedures throughout the week to handle lots of data.

Note Before you follow the instructions in this article, make sure that you have a complete backup copy of the database that you can restore if a problem occurs.

Database consistency check commands

You can run database consistency check (DBCC) commands manually with SQL Server through SQL Query Analyzer or SQL Server Management Studio. To do this, follow these steps:

If you use Microsoft SQL Server 2000, click Start, point to Programs, point to Microsoft SQL Server, and then click Query Analyzer.

If you use Microsoft SQL Server 2005 or 2008, click Start, point to Programs, point to Microsoft SQL Server 2005 or Microsoft SQL Server 2008, and then click SQL Server Management Studio.
In SQL Query Analyzer or SQL Server Management Studio, run one or more of the following DBCC commands:
DBCC CHECKCATALOG (DBNAME)
When you use this statement, replace DBNAME with the name of your database, such as DYNAMICS.

Note DBCC CHECKCATALOG is included in DBCC CHECKDB for Microsoft SQL Server 2005 or later.
DBCC CHECKDB (DBNAME)
When you use this statement, replace DBNAME with the name of your database, such as DYNAMICS.

You can schedule this command within SQL Server Enterprise Manager or SQL Server Management Studio so that the maintenance process runs automatically.
DBCC DBREINDEX (TableName)
When you use this statement, replace TableName with the name of the table, such as GL00100.

The DBCC DBREINDEX command can also be executed manually against all tables at the same time by using the Reindex.sql script. You can find the Reindex.sql script in the default path for Microsoft Dynamics GP as C:\Program Files\Microsoft Dynamics\GP\SQL\Utility\0 folder.

You can also schedule this command within SQL Server Enterprise Manager or SQL Server Management Studio so that the maintenance process runs automatically.
Update Statistics
There are several ways for you to run the update statistics procedure.

You can update statistics by running the UpdatSta.sql script with Microsoft SQL Server by using SQL Query Analyzer or SQL Server Management Studio. You can find the UpdatSta.sql script in the default path for Microsoft Dynamics GP as C:\Program Files\Microsoft Dynamics\GP\SQL\Utility\0 folder.
You can run the update statistics process within Microsoft Dynamics GP. To do this, follow these steps:
On the File menu, point to Maintenance, and then click SQL.
Select a database from the Database box and product for Product box.
Select all the tables for that database by pressing CTRL+A within the table listing.
Click Update Statistics, and then click Process.
You can configure SQL Server to run the update statistics process automatically within SQL Server Enterprise Manager or SQL Server Management Studio. To do this, right-click your database, click Properties, click Options, and then click to select Auto Create Statistics and Auto Update Statistics.
You can schedule the update statistics process on a recurring basis within Database Maintenance Plans.
Recompile Stored Procedures
There are several ways for you to recompile stored procedures.

You can recompile stored procedures by running the Recomp.sql script with Microsoft SQL Server by using SQL Query Analyzer or SQL Server Management Studio. You can find the Recomp.sql script in the default path for Microsoft Dynamics GP as C:\Program Files\Microsoft Dynamics\GP\SQL\Utility\0 folder.
You can also recompile stored procedures within Microsoft Dynamics GP. To do this, follow these steps:
On the File menu, point to Maintenance, and then click SQL.
Select a database from the Database box and product for Product box.
Select all the tables for that database by pressing CTRL+A within the table listing.
Click Recompile, and then click Process.
You can recompile stored procedures by scheduling the sp_recompile procedure by using SQL Server Agent Jobs. For more information about steps to create a job within SQL Server Enterprise Manager or SQL Server Management Studio, see SQL Server Books Online. To download SQL Server Books Online, visit the following Microsoft Web site:
http://www.microsoft.com/downloads/d...8-0a98145bcb97
Note If you receive any consistency or allocation errors when you are running these SQL maintenance procedures, you must contact Microsoft SQL Server support. This is not included in the support plan for Microsoft Dynamics GP and it would be an additional cost. Microsoft SQL Server support can be contacted at 1-800-936-5800.

Database Maintenance Procedure Definitions
The following is a list of definitions of database maintenance procedures. For more information, see SQL Server Books Online. To download SQL Server Books Online, visit the following Microsoft Web site:

http://www.microsoft.com/downloads/d...8-0a98145bcb97

DBCC CHECKCATALOG: Examines the consistency in system tables and between system tables. This command checks data pages and tables in the specified database for errors.

Note DBCC CHECKCATALOG is included in DBCC CHECKDB for Microsoft SQL Server 2005 or later.
DBCC CHECKDB: Examines the allocation and structural integrity of all the objects in the specified database.
DBCC DBREINDEX: Rebuilds all indexes. This command will help reduce page splitting and will improve data modification performance.
Update statistics: Updates the query optimizer with distribution information about key values of indexes. This enables the query optimizer to make efficient decisions.
Recompile stored procedures: Recompiles the queries and optimizes the triggers used by stored procedures. This recompile procedure updates database statistics and optimization information that can become outdated with changes to the database.
__________________
هذا الموضوع عبارة عن بذرة تحتاج للنمو والتحسين؛ فساهم في إثرائه بالمشاركة فيه
[LEFT]Best Regards
Ahmed Ibrahim
I.T Manager
http://ahmedibrahim.net
Mobile: +2 010-3438385
Microsoft Certified Business Management Solutions Specialist for Microsoft Dynamics AX 2009,Dynamics CRM4,GP10
Microsoft Certified Business Management Solutions Professional Applications for Microsoft Dynamics GP10
MCTS: SQL Server 2005,Windows SharePoint Services 3.0
ITIL Foundation V3
as_radwan غير متواجد حالياً   رد مع اقتباس
إضافة رد


يتصفح الموضوع حالياً : 1 (0 عضو و 1 ضيف)
 
أدوات الموضوع
انواع عرض الموضوع

ضوابط المشاركة
لا تستطيع إضافة مواضيع جديدة
لا تستطيع الرد على المواضيع
لا يمكنك اضافة مرفقات
لا يمكنك تعديل مشاركاتك

BB code متاحة
كود [IMG] متاحة
كود HTML معطلة

الانتقال السريع

المواضيع المتشابهه
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
اريد تصميم شبكة امانه للبرنامج aymanaldokh تركيب وإعدادات النظام وما يتعلق به توجيهات Installation & Configuration 2 01-Aug-2010 10:53 AM
رسالة خطأ Unhandled script exception بعد عمل صيانة للنظام diamondfeeling مناقشة المشاكل والأخطاء في برنامج جريت بلينز 2 30-Apr-2009 08:51 PM
حذف الحركات التاريخية للمخزون عن طريق الخطأ husham_khidir الجزيئ المالي
(GL - AP - AR – BM - FA - AC ... ets.)
7 17-Nov-2008 06:38 AM
كيف يتم اضافة الاصول الثابتة للبرنامج التبري مناقشة المشاكل والأخطاء في برنامج جريت بلينز 6 30-Mar-2008 10:46 AM


جميع الأوقات بتوقيت GMT +3. الساعة الآن 03:59 PM.


Powered by vBulletin® Version 3.8.3

الموقع والمنتدى من تطوير » شركة المنذر للاستضافة والتصميم

Copyright © 2000-2010 Jelsoft Enterprises Limited.
الموقع لا يمثل أي جهة رسمية بل هو جهد شخصي يرمي الى تجميع القدرات في برنامج جريت بلينز