Thursday 14 August 2008

Problems Installing SQL Server 2008 RTM

I've spent a couple of days trying to install SQL Server 2008 RTM. I received the following error message.

TITLE: Microsoft SQL Server 2008 Setup
------------------------------
The following error has occurred:
The process does not possess the 'SeSecurityPrivilege' privilege which is required for this operation.
Click 'Retry' to retry the failed action, or click 'Cancel' to cancel this action and continue setup.

For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=10.0.1600.22&EvtType=0xE32A4906%25400xB49B3A64

------------------------------
BUTTONS:
&Retry
Cancel
------------------------------

When you go to the Microsoft link provided there is a very unhelpful error message.

Details
ID:
50000                                             
Source:
setup.rll                                             
We're sorry

There is no additional information about this issue in the Error and Event Log Messages or Knowledge Base databases at this time. You can use the links in the Support area to determine whether any additional information might be available elsewhere.


Thank you for searching on this message; your search helps us identify those areas for which we need to provide more information.

----------------------

Well anyway after a bit of searching it appears that the 'SeSecurityPrivilege' is linked to the local security policy - "Manage auditing and security log".  You can access this by going to Control Panel\Administrative Tools\Local Security Policy. Then link to Local Policies\User Rights Assignment\Manage auditing and security log\

image

When you open that screen, you will see that your current account is not authorised to Manage auditing and security logs, this will cause the SQL Server 2008 install to fail. To rectify this, you will have to add your user or group to this list.

image

Notice however that the "Add user or group" is disabled on my machine. This is because my PC is a member of a domain and this setting is set by the Domain administrator and not configurable by an end-user. This is despite my account actually being both a local and domain admin. You will have to get your domain administrator to add a group that you belong to into this role in the domain. After rebooting your machine to pick up the new privileges from the domain controller you will be able to install SQL Server 2008 successfully.

image

:)

Friday 18 July 2008

format string in MSAccess

I recently trained some users in how to use the Format function in Microsoft Access. They wanted a definitive list of what the format strings could be. So it's probably not possible to document every single combination, however the new Microsoft Access 2007 online help does document a large number of really useful types. Go to Microsoft Office help Online

http://office.microsoft.com/client/helppreview.aspx?AssetID=HV012026591033&ns=MSACCESS.DEV&lcid=3081&QueryID=gRnDnXje30&respos=1

Here is an excerpt.

Returns a Variant (String) containing an expression formatted according to instructions contained in a format expression.

Syntax

Format(expression[, format[, firstdayofweek[, firstweekofyear]]])

The Format function syntax has these parts:

q
Display the quarter of the year as a number (1 – 4).