Getting html files to be handled by the aspnet_isapi.dll is a bit of a pain in MSs new fandangled IIS7. So, for an app running in integrated mode on IIS7 do the following:
1. In the web.config under <system.webServer>, <handlers> add:
<add name="HTML-Integrated" path="*.html" type="System.Web.UI.PageHandlerFactory" verb="*">
2. Also in the web.config under <system.web>, <buildproviders> add:
<add name="HTML-Integrated" path="*.html, *.htm" verb="*" type="System.Web.UI.PageHandlerFactory" />
Friday, 23 July 2010
Monday, 19 April 2010
TSQL query update in trascaction
When updating a live DB, use the following query. Once data looks ok, hilight commit and run (or rollbak if it's not good)
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
BEGIN TRAN
-- update
update table
set stuff = 'something'
WHERE active = 1 AND
code LIKE 'VCH%'
-- check changes
SELECT *
FROM COM_Voucher
order by active, end_date
--commit
--rollback
Subscribe to:
Posts (Atom)