Tuesday, February 5, 2013
When opening the Windows Server 2008R2 in Server Manager (Configuration >> Task Scheduler >> Task Scheduler Library) I got an error message “The selected task "{0}" no longer exists.". After digging into his, the solution is to delete a file which is out of synch with the registry –
C:\Windows\system32\Tasks\Microsoft\Windows\Defrag\ScheduledDefrag (no extension)
This file is a scheduler item for regular defragmentation of the server. After it is deleted the Scheduler is pretty reasonable to work with. The job can be recreated if needed.
It may be a job other than “defrag”, from what I read, but has been defrag on all of my VMs. The process is to click once on all of the objects under
Configuration >> Task Scheduler >> Task Scheduler Library >> Microsoft >> Windows
and see which item give the error on clicking it once.
Tuesday, May 3, 2011
Creating an account to access SQL Server
Creating production accounts -
- make sure it doesn't exist
- create account
- assign it a user name
- give it limited security rights
- give it the right to connect
IF NOT EXISTS ( SELECT *
FROM master.dbo.syslogins
WHERE loginname = N'ZZBSTN\dsq-apps' )
CREATE LOGIN [CHBSTN\dsq-apps] FROM WINDOWS
CREATE USER [dsq-Apps] FOR LOGIN [ZZBSTN\dsq-apps]
GO
GRANT REFERENCES ON [dbo].[v_Person] TO [dsq-Apps]
GRANT SELECT ON [dbo].[v_Person] TO [dsq-Apps]
GRANT REFERENCES ON [dbo].[v_PersonTraining] TO [dsq-Apps]
GRANT SELECT ON [dbo].[v_PersonTraining] TO [dsq-Apps]
GRANT CONNECT TO [dsq-Apps]
GO
Monday, August 9, 2010
CLICK 5.6 patch matching
Under version 5.5.3 and earlier the "Version Information" screen included the exact name of the patch file, and I could compare the file name to the names of patch files we've accumulated on our development and staging servers. In 5.6 we must use the "Patch ID" in the PatchHistory.entity.xml in the patch itself, inside the PATCH.ZIP. I compare this ID to the PatchID in the left column of Version Information on the staging (patch test site). This number is a 32 character alpha-numeric that seems to be like a guid. Each patch has a unique one, so we will not confuse patch files again (not that I've ever made a mistake on a patch).
Version Information:
PatchID:
779442BED2A1684DBCCC8680DDDF5AA9
Command Line:
PatchStore -store CHBTEST -patchrunid 2010.07.28.09.56.14.236 -userName Administrator -noversioncheck -unzipDirectory C:\Program Files\Click Commerce\Extranet\Temp\kiad4mv2.gyy
PatchHistory.entity.xml from the Patch.ZIP
-
-
Wednesday, July 7, 2010
Wednesday, June 2, 2010
Concise guide to SQL Server 2005 memory use over 4 GB on a 32-bit server
1. Enable the Lock Pages in Memory Option - The Windows policy Lock Pages in Memory option is disabled by default. This privilege must be enabled to configure Address Windowing Extensions (AWE). This policy determines which accounts can use a process to keep data in physical memory, preventing the system from paging the data to virtual memory on disk. On 32-bit operating systems, setting this privilege when not using AWE can significantly impair system performance. Locking pages in memory is not required on 64-bit operating systems. Use the Windows Group Policy tool (gpedit.msc) to enable this policy for the account used by SQL Server 2005 Database Engine. You must be a system administrator to change this policy.
a. On the Start menu, click Run. In the Open box, type gpedit.msc. The Group Policy dialog box opens.
b. On the Group Policy console, expand Computer Configuration, and then expand Windows Settings.
c. Expand Security Settings, and then expand Local Policies.
d. Select the User Rights Assignment folder. The policies will be displayed in the details pane.
e. In the pane, double-click Lock pages in memory.
f. In the Local Security Policy Setting dialog box, click Add.
g. In the Select Users or Groups dialog box, add an account
h. with privileges to run sqlservr.exe.
2. In SQL Server right-click a server and select Properties. Click the Memory node. Under Server Memory Options select Use AWE to allocate memory. To use 6 GB of memory set Minimum server memory to 3072 (MB), and Maximum server memory to 5120 (MB). Alternatively run these commands:
sp_configure 'show advanced options', 1
RECONFIGURE
GO
sp_configure 'awe enabled', 1
RECONFIGURE
GO
sp_configure 'min server memory', 3072
RECONFIGURE
GO
sp_configure 'max server memory', 5120
RECONFIGURE
GO
Restart SQL Server for these to take effect.
3. Edit the BOOT.INI file, and remove the /3GB switch, if present, and add the /PAE switch. This requires a reboot to take effect. (Note: the 3GB switch only hurts if memory exceeds 16 GB)
(Comments appreciated)
Wednesday, May 19, 2010
CLICK has a bunch of timeouts, which will kill certain transactions when exceeded. When a task has failed or an error was spotted in the WOMlog and the issue was traced to a time-out then I've raised the value, often with the consent of CLICK support. But without really understanding the trade-off implicit in the timeout I have not set it back after the issue was resolved. This migration would have failed far sooner, and the issue resolved sooner, if the timeouts had been lower. But even with "Command" and "Connection" timeouts too high I saw timeout errors. The best solution is a good description of the trade-off and impacts of the parameter. This is often tough to put together, though.
Learning: lock out the developers when starting a migration job.
Thursday, April 22, 2010
Tuesday, December 29, 2009
Wednesday, June 10, 2009
DBCC prevents transaction log backups
Monday, May 18, 2009
Fixing a transaction log backup on an upgraded database
Monday, April 13, 2009
Full backup of a shrunk database - learning by monitoring
Life with EMAIL
Tuesday, March 24, 2009
Adventures upgrading SQL Server
Why is SQL Server so hard to manage? It tries to be everything for everyone. And mostly succeeds. But . . .
I tried to upgrade the databases to 2005 by running the Copy task to the same location, because that is what I understood the BOL to say. But it copied each database to the same name with “_new” appended, which meant the CLICK applications would not see them. A big waste of time I though, so I stopped the process. This left one of the most important large databases (11GB) locked. Even rebooting the server would not let SQL Server open the file. Thank the L*** we’re running all this on the latest version of VMware, and we had taken a “snapshot” before starting. We “reverted” to the original state of the server. In a couple of minutes 2 ½ hours of work were wiped out. Back to the drawing board.
Next morning - the upgrade looks good. A couple of services needed to be restarted. The batch jobs, including transaction log backups, look ok. After restarting SQLSERVERAGENT they are running hourly.
Thursday, March 19, 2009
Wednesday, March 18, 2009
- Copy a backup of the CLICK sites off to an archive - 30 to 60 minutes
- deactivate the old VM
- Create the new VM with the same name and IP - Tom B - 2 - 2.5 hours - this can be done aheady of time but not start it until the old one is deactivated.
- Install SQL Server + SP3 + BOL - 1 hour +
- Install CLICK - 1 hour - 5.5.3 plus the framework patches 01, 05, and 06
- Copy the sites back - 30 - 60 minutes
- Create and load the CLICK sites - 60 minutes (can overlap a bit with 6)
- test - if fails then Tom B plus Net Ops needs to restore the old VMware site.On TRAIN the training site will be restored from PROD, not the old one (better keep a copy just in case).