One of our client wanted to move CRM Server from One Data Centre to different data centre but due to some constraint we could not move it by creating New Organization or by new deployment. We had only left option was update IP address manually. Recently we moved our CRM Server from one data centre [...]
Archive for the ‘SQL Server’ Category
Moving CRM Servers(Application and Database) to New DataCentre
Posted: February 26, 2012 in CRM 2011, CRM5, Microsoft .NET, Microsoft Dynamics CRM, SQL ServerTags: CRM, Data Centre, DeploymentProperty, Microsoft Dynamics CRM, Migration, Migration To New Data Centre, Move servers to new Data Centre, MSCRM_Config
Update database statistics everyday
Posted: September 9, 2010 in Microsoft Dynamics CRM, SQL, SQL ServerTags: Database, SQL, Statistics, Update, Update Statistics
USE [msdb] GO /****** Object: Job [Data_Update_statistics_everyday] Script Date: 05/27/2010 12:32:03 ******/ BEGIN TRANSACTION DECLARE @ReturnCode INT SELECT @ReturnCode = 0 /****** Object: JobCategory [Database Maintenance] Script Date: 05/27/2010 12:32:03 ******/ IF NOT EXISTS (SELECT name FROM msdb.dbo.syscategories WHERE name=N’Database Maintenance’ AND category_class=1) BEGIN EXEC @ReturnCode = msdb.dbo.sp_add_category @class=N’JOB’, @type=N’LOCAL’, @name=N’Database Maintenance’ IF (@@ERROR <> [...]
Rebuild Index of a database table
Posted: September 9, 2010 in Microsoft Dynamics CRM, SQL, SQL ServerTags: Rebuild, RebuildIndex, RebuildIndex of a Table, SQL Server
DECLARE @Database VARCHAR(255) DECLARE @Table VARCHAR(255) DECLARE @cmd NVARCHAR(500) DECLARE @fillfactor INT SET @fillfactor = 90 CREATE Table #databaseName (dbid int identity(1,1), DbName Varchar(255)) Insert into #databaseName SELECT name FROM MASTER.dbo.sysdatabases – WHERE name NOT IN ( ‘master’, ‘model’, ‘msdb’, ‘tempdb’, ‘distrbution’ ) WHERE name IN ( ‘OD’) ORDER BY 1 CREATE Table #TableName (Tableid [...]

