The above code does not work for me, so I tried this one.
also notice lightweightpooling is changed into lightweight pooling
USE master
GO
EXEC sp_configure 'show advanced options', 1
GO
RECONFIGURE WITH OVERRIDE
GO
EXEC sp_configure 'lightweight pooling', 0
GO
RECONFIGURE WITH OVERRIDE
GO
EXEC sp_configure 'show advanced options', 0
GO
And don't forget to restart the SQL Services.
Cheers
Agha Usman (www.aghausman.net)