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

    • Turn your used stamps into vital funds to support human rights around the world.   How it works: Simply send us your stamps and we'll then sort through them to sell or auction. We accept all stamps of all origin and value – both used and new. Foreign and commemorative ones are likely to be worth the most. Please leave at least half centimetre of paper around the stamps Send your stamps to: FAO Robin Sandow c/o The Post Room Amnesty International UK 2nd Floor, Peter Benenson House, 1 Easton Street, London, WC1X 0DW Recycle your stamps.AIUK.pdf
    • Also, if he enjoys design or drawing (alongside his maths & tech) he might like the Greenpeace competition for a poster (see Lounge post) - 5 days left to enter. Something more for some time at home, but ...
    • Deadline in 5 days! Important Dates 🗓 Submission deadline: 25 July 2025 🗳 Public voting opens: 7 August 2025 🚢 Winners announced: 15 August 2025   Time is running out! There are only 5 days left to submit your design for Greenpeace’s poster competition. This is your chance to help send a powerful, creative message across Europe: We must stop fossil gas, oil and coal and move toward a fossil-free future. No matter your skill level, everyone is welcome. Whether you're sketching by hand, designing on a screen, or crafting a collage, we want to see your vision. 🎨 The 3 winning designs will receive:     A printed full-size poster of your artwork     50 postcards of your design     An exclusive Greenpeace campaign t-shirt   How to enter     Design your poster     Use any style you like – hand-drawn, painted, digital, collaged. Just make sure it’s original and fits our message.     Submit your design     Upload a photo or file using the form on this page. You’ll need to include your name and contact email.     Vote for your favourites     After the submission deadline, we’ll shortlist poster designs that you can vote for! Share the voting page with your friends so you have a better chance to win.     Your poster in the European Parliament and on the Arctic Sunrise The top-voted design will be sent to all members of the European Parliament as postcards. The three designs with the most votes will be printed as posters and postcards, and will be part of the Arctic Sunrise ship tour this fall. As a winner, you will get printed versions of your poster and a Greenpeace t-shirt.    Direct link: https://www.greenpeace.org/international/act/send-your-poster-design/?utm_campaign=fff-ban-new-fossil-fuel-projects&utm_source=hs-email&utm_medium=email&utm_content=fff-poster-design-contest-3rd-email-2025-07-20&utm_term=2025-07-20-poster-design-contest-3rd-email-button-2&global_project=fossil-free-future Time is running out! There are only 5 days left to submit your design for Greenpeace’s poster competition. This is your chance to help send a powerful, creative message across Europe: We must stop fossil gas, oil and coal and move toward a fossil-free future. No matter your skill level, everyone is welcome. Whether you're sketching by hand, designing on a screen, or crafting a collage, we want to see your vision. 🎨 The 3 winning designs will receive:     A printed full-size poster of your artwork     50 postcards of your design     An exclusive Greenpeace campaign t-shirt The deadline is 25 July 2025. After that, we’ll shortlist the top designs and the public will vote for the winners. Don't wait and join today! Join the competition now 
    • Perhaps the OP already has, hence her question?
Home
Events
Sign In

Sign In



Or sign in with one of these services

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