Jump to content

Recommended Posts

Ok, figured it's a chance to get EDF on the google knowledge base map.


For the most part in my job (IT development) I can just google a class or error and get a wealth of useful information.


But recently I've started upgrading stuff to reporting services 2008, SQL 2008 and I'm getting an average of no hits and no information, clearly I'm the only one doing this or no one can get anything to work and talk about it.


Yaw yawn etc.


Anyway, I figured we have thousands of intelligent people working in all sorts of professions and we might be a good resource to help each other in times of need, and mayhap a room to share this stuff might (or might not, fine fine, let it sink out of sight) be a good idea.


So when in need...is there a legal precedence for...how can I use linq to...dovetail joint the wrong way of going about...should I use butter or is a water based lube... etc this is the place to ask.

oookayyyyy


so can anyone tell me why, in SQL server, when trying to randomly get the Nth row from a table with


[pre]

WITH sentence AS

(SELECT

stuff,

row = ROW_NUMBER() OVER (ORDER BY Id)

FROM

SentenceType

)

SELECT

sen.stuff

FROM sentence sen

WHERE sen.row = (ABS(CHECKSUM(NEWID())) % 100) + 1 --random 1-100 this aint cryptography


[/pre]


and


[pre]

DECLARE @row INT

SET @row = (ABS(CHECKSUM(NEWID())) % 100) + 1 --random 1-100 this aint cryptography


;WITH sentence AS

(SELECT

stuff,

row = ROW_NUMBER() OVER (ORDER BY Id)

FROM

SentenceType

)

SELECT

sen.stuff

FROM sentence sen

WHERE sen.row = @row

[/pre]



they behave so very, very differently with the former utterly barmy and the latter working fine (but not how I want to do this)?

OK, got it.


In my first post it's calculating (ABS(CHECKSUM(NEWID())) % 100) + 1 against each row in the CTE, thus you will get as many (or as few) returned rows as you get coincidental matches between the (ABS(CHECKSUM(NEWID())) % 100) + 1 and the ROW_NUMBER.

Interesting I always thought the where clause was considered a static value applied to each row, not a row level value applied to each row. Hmm beware of any getdate() type stuff on a long running query I reckon.


One for the memory banks.

Thanks for your help everyone.


Right, I'm trying to write a romantic ditty with my own fair pen to get some violinists to play at my wife's romantic birthday dinner. Should I go with a minor scale for that romantic/melancholic intimacy or go with the majors for that get up and go celebratory tone of which she's so beloved?


Also should I learn how to play/write music too?

Brendan thats a piano piece, I prefer Dm it's the sadest of all keys you know. Major keys are too up beat, minor keys envolke emotion


Im not a developer more of a unix sys admin/engineer if you ever get a problem with Solaris Linux networking disk managment Veritas or LVM clustering or shared storage patching ipmp basic scripting etc then I may be able to help you out

You punk sh*t you. ;-)


Some of us had to write bubble searches when there was nothing but assembly. We wrote the bloody code.


Don't imagine I was always a logical recidivist. The models you use to reduce data factories now were written by me and my peers in between writing 'Tron' for 'Computer & Video Games' Magazine, 1984. (Yes, I know, CVG now, you p*nces).


You go off to these blinking exam courses in '95 and think you own the debate.


I laugh in the face of your language compiler trap, if only because in my day you'd be staring at one million data points without a clue at rationalising them. Sod it. You'd be going 'load the stack...skim the stack', it's binary dontcha know?


Incidentally, you'll never find the result by potting code. You have to feel the result. Stroke the knowledge. Numbers are an art, not a science.


Signed Grumpy B@stard

Ok ...now don't take offense are you a DIY a "Don or Dunce"

it goes in between the fittings ( LED downlighters ) and the main supply, a bit like a transformer does on L.V so say 6 lights can run off the main feed, they are small enough to push through the hole cut out for the fittings. they do need to be accessible in case of later failure. Also they won't heat up like LV's




See inclosed instruction supplied with the items(Don) or hire a sparks (Dunce)


W**F


PS. Turn off power at the mains before starting any electrical work

I'd do a scan for any malware, bots etc, just in case; maybe time for a defrag too? What OS are you?


Although I love Firefox I find it more memory intensive than IE on the whole, and blows up more often, but then I suppose I have more extensions than most, some of which, like firebug, get under the covers somewhat.


I've found Google Chrome the quickest and lightest so far, but it's still in Beta form.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Latest Discussions

    • Another recommendation for Dulwich Test and Services Centre. Only been using them for a couple of years but wish I’d found them earlier 
    • A new roadmap (surely railmap?!) for rail accessibility has been published: https://www.gov.uk/government/publications/accessible-railways-roadmap It says "approximately 56% of stations and around 66% of the 1.3 billion journeys that take place on the network have step-free access to platforms...  "£373 million has been committed over the next 5 years to deliver Access for All projects, providing step-free access from station entrances to and between platforms, alongside other essential accessibility upgrades. These works, together, will increase the number of step-free stations across Great Britain from 56% to 58%. "This improvement will make travel easier with step-free access available at stations covering an increased share of total rail journeys – from 66% up to 71%" Don't know what that means for us here: upgrading Peckham Rye would cover a lot of rail journeys but the cost has no doubt increased from the £40m figure previously quoted. So that would eat into a lot of the funding.
    • It's not really though, is it. It's practical.  At least we're allowed Christmas lights.
    • We are the only specialist floor insulation company on the market to focus on insulating from below – meaning almost zero mess, disruption or noise! Warmdwell is extremely proud to receive the highest reviews for our professionalism, reliability, commitment and the all-round ease of doing business with us: we draw our team from professional, creative, educated backgrounds to provide a friendly, problem-solving team with the deepest integrity. We take real care of your home and aim to leave it as spotless as possible. Please check our Google Reviews to speak for us: "We were really pleased with their quote, communication, and with having the job done perfectly with almost zero disruption. We think they left the space cleaner than when they arrived, and we are definitely already getting the effects of a warmer room" – Miriam & Abed, Sevenoaks, Oct 2025 "Laurence and his team were extremely polite & helpful, and the work was performed over just 2 days with minimal disruption. It was absolutely the most relaxed work I have ever had performed on the house!" – Alistair, Cambridge, July 2025 "Extremely friendly, polite and efficient" – Diane, Forest Hill, June 2025 We are always keen to chat through your floor insulation options and provide as much free advice as we can, as well as free quotes and surveys – so why not ask us today about what is possible to protect your floors from the cold ventilation air blowing underneath, keep your heat in and warm up your home? We use high-performance mineral wool slabs, never foam, for so many reasons: it is the ideal flexible material for the irregularities of old floors; is breathable, working with the way your floor has successfully performed for perhaps 100 years or more; can easily be removed to access pipes and cables; and is completely non-combustible. A local business based in Crystal Palace, we work extensively around Dulwich, Herne Hill, Forest Hill, Lewisham, Tooting, Balham and across the south East of England. Please ask us about your floor insulation options or for local project case studies today! Phone Number: 02080792793 Email Address: [email protected] Website: https://warmdwell.co.uk/ View full listing
Home
Events
Sign In

Sign In



Or sign in with one of these services

Search
×
    Search In
×
×
  • Create New...