Archive

You are currently browsing the Log et al – Peter Curd blog archives for April, 2010.

Apr

25

Unable to add certain Active Directory users as Windows Logons to SQL Server 2008 on Windows Server 2008 R2

By pcurd

Last week I faced an issue where I was unable to create Windows Logons for SQL Server 2008 from Active Directory users on a Windows Server 2008 R2 server when a Windows Server 2008 server was able to.

The error was a 15401 error which are quite common and usually mean your Server Principal names are wrong, however I had checked this and knew it was not an authentication issue. See my post on Server Principal Names for more details on this. Plus I was able to add other users. The error was “Error 15401 – Windows NT user or group ‘domain\username’ not found”.

There is a Knowledge Base article which describes the problem (with a hotfix) but the symptoms are not the same as the knowledge base so I hope this makes it easier to find. The knowledge base article is KB976494 (Error 1789 when you use the LookupAccountName function on a computer that is running Windows 7 or Windows Server 2008 R2) http://support.microsoft.com/kb/976494.

Reblog this post [with Zemanta]

Apr

25

Twitter Weekly Updates for 2010-04-25

By pcurd

  • ITV News 'We're very familiar with the Cameron and Brown holes' I don't to know about Brown holes! #election2010 #
  • ITV News 'We're very familiar with the Cameron and Brown holes' I don't want to know about Brown holes! #election2010 #
  • I'm quite excited by news of the HP Slate but it must be cheaper than iPad and you know, work. @Scobleizer #
  • Harbourside at Torquay (it's really bright but iPhone makes it look a bit dark) http://twitpic.com/1h25ga #
  • My train was 35 minutes late leaving Tauton but only going to be 12 mins late to Reading… Why doesn't it go this fast all the time! #
  • RT @SatScenes: The Scilly War: http://bit.ly/d7nrOS It's an incredible set of photos this week! <- big one! #
  • Less arguments this time #leadersdebate #
  • Very interesting. I'm going to watch again later as I missed some. Pleased with Cameron but overall not a very strong debate #leadersdebate #
  • Super cheap TV update: recieved £25 off £150 sale voucher. I wants a TV! @jamesbmarshall #
  • Had a really good time tonight meeting people at #leadersdebate event. Must get involved more often! #
  • Must to bed, good night Twitter and merry Friday to you all. #
  • Lovely picture from the #SqlBits photostream (http://bit.ly/a0PR2j) http://www.flickr.com/photos/49456317@N04/4544587744/ #
  • RT @RobAshton: Am I going to googlewhack my first born? That's a question that has no right answers (Asked by @PCurd) #
  • Just bought "Sevin Sins" by @MariaLKanellis on iTunes! #
  • Very pleased with Cameron after a strong performance on Paxman #election2010 #
  • Looks like I need to pop into the office – I have a server down. #

Powered by Twitter Tools

Apr

22

Access 97: The database engine can’t find Error

By pcurd

When linking to a SQL Server table in Access 97 today I came across this weird error:
“The database engine can’t find TableName. Make sure it is a valid parameter or alias name, that it doesn’t include invalid characters or punctuation, and that the name isn’t too long.”

As the table name was reasonably small, and I had longer table names already linked, I became suspicious.

The problem was indexes, if the total length of the table name plus the length of the name of the longest index is longer than 64 characters, you get that error. Making the index name smaller solved the problem.

Apr

18

Twitter Weekly Updates for 2010-04-19

By pcurd

  • WTF? The Red Alert 3 soundtrack is £8.99 on iTunes! That's nearly twice what I paid (new!) for the game?! #fail #
  • RT @amykate: @fringley doesn't suck @fringley's tweets #chineseretweet #
  • RT @amykate: good point @fringley – I also love you @echofon on my ipod, esp the changing-accounts function, very easy! <- Me too! #
  • RT @timmorgan: .@echofon for PC (and not in Firefox) GOGOGO! <- YES! #
  • RT @CAMURPHY: w00t! MSDN has Visual Studio 2010 for download…"go" <- Yup I'm pulling down Ultimate at 2441KB/s :) #
  • Quick poll – should I run Visual Studio 2010 on a 32bit or 64 bit Windows 7? Less than 3GB of RAM so only difference is platform. #
  • My one wish of the day – that Microsoft put Telnet back in as a default installed option in Windows 8!! #
  • RT @PatParslow: I do hope this http://bit.ly/bxPfUR is true and something can be done about it. <- everyone should read this. #
  • Just received an alert from @wasitup before even our users realised! Excellent service! #
  • I'm impressed with my new AKG K324P headphones. Bass is strong enough to give me a headache – excellent! :-) #
  • boooo delayed iPad http://www.techmeme.com/100414/p14#a100414p14 #
  • I'm not going to make #rdgtweetup – I have a proper headache kicking in :( #
  • RT @Jason: What major internet sites are using Cassandra as a data store? http://bit.ly/aGP8RM @nicktelford #
  • #RandomFactOfTheDay Torchwood is an anagram of Doctor Who. #
  • Hehe do do. #leadersdebate #
  • Let's hope that Stewart got that date right this time.. #leadersdebate #
  • So far Clegg looks good – however Cameron doesn't need Liberal seats but Labour seats and Brown does not come across strong. #
  • Somebody stop Brown telling jokes! #leadersdebate #
  • Kept up late with work.. 5 hours sleep is enough? Right? …. Right? :( #
  • Then what's that sticking out your pants?! RT @BrentSpiner: Brent.. Your ego is showing! –I have no ego. #
  • I feel there should be laws against me getting up this early! #sqlbits #
  • I'm at Reading Station (Station Approach, Station Hill, Reading). http://4sq.com/6xT7ED #
  • At #sqlbits Good turnout! Looking forward to it! #
  • Enjoyed Ramesh's Parallel Query Execution talk – extra tips as always! #sqlbits #
  • Now in Make Your DBA life better – could do with that! #sqlbits Really impressed with organisation of the event again, great everytime. #
  • Just waiting outside Colin Cunninghams talk! It's packed! #sqlbits #
  • RT @amykate: Sourse control for databases? This I HAVE to know :-) #sqlbits <- it's good! #
  • Waiting for a train must be the most boring experience in the world… #
  • Spring has sprung in Torquay, Devon. @SatScenes http://twitpic.com/1g9bpx #

Powered by Twitter Tools

Apr

11

Twitter Weekly Updates for 2010-04-11

By pcurd

  • Wow just noticed that the 'come here we're awesome' cybernetics picture at #RDG university http://bit.ly/aljRS1 includes me! #
  • If anyone says to you that you can't watch all three extended edition Lord of The Rings in one day you can say they are wrong! :) #
  • Hi ho, hi ho, it's off to work I go… #callout #whyamiawake #
  • 3 and a quarter hours of callout billed – time and a half too. #
  • RT @PCurd: @Anie67 a sanctuary for owls? <- my 8,900th tweet. Seems to sum me up really. #
  • I don't tend to big up my blog posts but this is a big one. DRM and me – The problem with The Settlers 7 http://bit.ly/95Nexi #
  • Thanks @carocat and @phil_crabtree for the RT's :) #
  • RT @Plip: Election will be called tomorrow… :/ <- seems likely. #
  • Random question but @daveluckett, you don't happen to know John Redwood's stance on the Digital Economy bill do you? #
  • Yay my MP (John Redwood) is there today #debill #
  • Wow headache came out of nowhere… lovely, just what I needed. #
  • The female of the house is out which means…. Takeaway! :) #
  • RT @PatParslow: @PCurd I specially twist everyone :-) #chineseretweet in reply to PatParslow #
  • RT @simon_sabin: who's got the best deals on xBoxes in the uk <- @FrugalGaming can you help? #
  • I've just read through John Redwood MP's comments on the #debill last night and am proud to have him as my MP today http://bit.ly/ahDrFw #
  • woo just got a reply from my MP – the system works! :-) #debill #
  • I'm going mad with this problem today – does anyone know an easy way to read windows performance counters from Linux? #
  • RT @beautifulvenice: Would like it down for the record that @PCurd is is a superstar and a gent! :) <- What? :-P #
  • #debill passes on 3rd reading I hear. Well crap. #
  • Going to bed enraged about #debill and waiting for Hansard to be published in the morning to see the backlash against the aye voters.. #
  • If they thought defying the Whip would be scary, watch out for what the voters will do to them! #debill #
  • Did anyone invite me out tonight? I'm sure someone did! Let me know! #
  • RT @RobAshton: RT @glynwintle: The Digital Economy Bill has passed through the Lords. That is it, its passed #debill #
  • I wonder if iBooks for the iPhone/Touch will work in the UK? #
  • RT @Anie67: @PCurd ok. you are "special"!!! extremely "special". Timmeh!! "special" #special #
  • Apple just added Xbox Live to the iPhone! #
  • Uh oh, Apple is now going after Google – iAds. So that's Sony, Microsoft, Amazon and Google upset in 49 minutes! #
  • Adverts delivering emotion? Steve Jobs sounds like @petermolyneux2 #
  • Damn.. now … I have about a year left on my 3G contract.. mmmmmmmmm #
  • Goodnight all, nice evening with @talldavek @timmorgan @craigyd @amykate @XaosWolf @DNoaksey @shibbygem @carocat @bennuk and @deepwire #
  • I have my car back! woo! The garage have fixed the problem – it has a saddle tank and one of the scavenge pipes was not in the right place.. #
  • Me: Don't touch them, they don't like it. @XaosWolf: That's what she said. Me: …. #TWSS #
  • .@RichardHopton hoping against hope that the next leap will be the leap home #SamBecketDay in reply to RichardHopton #
  • #RDG Riverside surprisingly quiet today! Lovely weather so it's a shame @SatScenes http://twitpic.com/1ekkpi in reply to SatScenes #
  • W/ @carocat @beautifulvenice (@ Workhouse Coffee (George Hotel)) http://4sq.com/aYehU9 #
  • RT @giraffetweet: @beautifulvenice @pcurd laura – he seems to be a man of many talents…! <- that's gunna cost me :) #
  • Going to bed now – spent all evening watching @XaosWolf complete God of War 3 and it's a great game to watch! #

Powered by Twitter Tools

Apr

5

DRM and me – The problem with The Settlers 7

By pcurd

This morning I happened to notice on Steam that there is an update for the Settlers 7 out and I thought to myself, wow did I miss the release?

I’m a big fan of the Settlers series and I own all of them from Settlers 1 (which I have on floppy disk somewhere) through to Rise of an Empire, the sixth game in the series, which I own on Steam.

Although there have been shakey moments in the francise, the fifth game The Settlers: Heritage of Kings tried to be too much like Spellforce without capturing the essence of RTS-RPG for example, Settlers games have always been fun to play.

So with much excitement I did a quick search.. nope, Settlers 7 (Paths to a Kingdom) is not available on Steam.. must be one of those regional locks which annoys me, considering The Settlers is made by Blue Byte Software, a German developer. Why does the US get it first? It’s published by Ubisoft – a French publisher!

So I decide to check out Ubisoft’s download page to see what the price is and there I find it. Well, I find the US page anyway. After some more searching I find the UK page – except it’s from GamesPlanet. But whatever, it’s got a Ubisoft logo on it.

£34.99 is a reasonable price for a new game, don’t even get me started on the “electronic copies should be cheaper” debate, so I start to check out what’s in this edition, after all the US copy is the Gold Edition and only £5 more. The feature difference isn’t important but I do notice one thing I’ve been secretly dreading all this time. Ubisoft’s DRM package (Digital Rights Management).
Read more »

Apr

4

Twitter Weekly Updates for 2010-04-04

By pcurd

Powered by Twitter Tools

Apr

1

Find Query Plans on Microsoft SQL Server

By pcurd

Today I was asked by Luke Smith a question about Query Plans in Microsoft SQL Server and how to return the Cached Query Plans to check they are decent.

I began to think about the DMV (Dynamic Management View) sys.dm_exec_cached_plans and whilst that includes some important information, it doesn’t include the plan itself.  So then I turned to another DMV, sys.dm_exec_query_plan passing it the plan_handle from the first DMV.

Finally, to be useful as a diagnostic tool I wanted the query text so I added in a third DMV sys.dm_exec_sql_text again passing the plan_handle. I then sorted by usecounts which does what it says on the tin and limted to those that are not system procedures, are actually plans, as opposed to records from parse trees or extended stored procedures, and have been used more than 10 times.  This returned a lot of data for me so I limited to the top 100, but this could obviously be tuned to a different environment.

Running this in SQL Server Management Studio has the bonus of being able to click on the XML in the query_plan and view the plan graphically which is definitely better than the XML!
Read more »