/*Version 1 of my script to fix all fragged indexes on a database */ /*Must be logged in as [sa] for this to work, if not, you will get permissions errors*/ /*You should be able to copy and paste this script in its entirity to your SQL 2005 or higher query window and run it without altering anything other than the USE .*/ /*Perform a 'USE ' to select the database in which to run the script.*/ USE AdventureWorks GO -- Make sure temp table doesn't exist IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tmp_fraglist]') AND type in (N'U')) DROP TABLE [dbo].[tmp_fraglist] GO -- Declare variables SET NOCOUNT ON DECLARE @tablename NVARCHAR (255) DECLARE @indexname NVARCHAR (255) DECLARE @indextype NVARCHAR (255) DECLARE @execstr NVARCHAR (255) DECLARE @pagecounts INT DECLARE @frag DECIMAL DECLARE @reorgFragSize DECIMAL DECLARE @rebldFragSize DECIMAL DECLARE @numrecords INT DECLARE @rowcount INT DECLARE @errorMessage ...
Someone raised an interesting point on Monday night at a GGD dinner and I feel they have missed the entire point of Girl Geek Dinners and have also, with their comments, seriously undermined other women who are looking to come out of their shell and interact with other 'geeks'. If you don't agree with what we're doing then don't come to a Girl GEEK dinner, and certainly don't turn up and throw cold water on people, make belittling comments and then moan that it was too technical and you didn't enjoy it. So what is a geek? There seemed to be some confusion. These women throwing around the derogatory comments seem especially confused. So let's refresh everyones' minds. You don't need to be in IT to be a geek folks! It's not an exclusive club limited to women who don't baulk at the thought of writing code. We're a diverse crowd and we celebrate each others geekiness, even if it isn't something we're into. We certainly ...
I’ve been feeling pretty tired recently, well, for about 10 years . V arious trips to the doctor have resulted in all manner of weird diagnosis’ for this, including when I was 30 the wonderful medical opinion of “it’s just because you’re older now, it’s normal, of course you won’t feel as energetic as you did in your 20’s” erm…. I’m not an expert or anything but I’m pretty sure that’s not right. Over the past 10 years I’ve been to a few different doctors to complain about tiredness, and I’m not talking feeling a little bit snoozy, I’m talking the fighting to keep your eyes open sleepiness. During this time my weight has been slowly climbing and this has been making the sleep issue worse and the lack of sleep in turn makes my weight worse – it’s a vicious cycle that needs to be broken. Eventually I got fed up with doctors and being the geek that I am (though a somewhat tardy geek in this situation) took matters into my own hands. Google is your friend. After a bit of Googling I fou...
Comments