Viewing 15 posts - 1,381 through 1,395 (of 1,957 total)
Jeff Moden (5/22/2011)
May 22, 2011 at 5:20 pm
You are nearly there, but you need to think in terms of sets of data, rather than individual rows.
UPDATE [dbo].[bokningar]
SET
[dbo].[bokningar].[Webbokningsnr] = ISNULL(D.Webbokningsnr,I.Webbokningsnr)
FROM
deleted D
JOIN
...
May 21, 2011 at 4:12 pm
Nils Gustav Stråbø (5/20/2011)
A CTE declared inside a stored procedure...
May 20, 2011 at 4:31 pm
sperry-750868 (5/20/2011)
I do not have to deal with negative numbers but it is not to hard to explain, what changes would i have to...
May 20, 2011 at 6:28 am
sperry-750868 (5/20/2011)
Mister.magoo, You sir are a beautiful human being. Need to run a few more tests but it all looks good. Thanks a lot!
Gosh! maybe I should put that in...
May 20, 2011 at 5:53 am
sperry-750868 (5/20/2011)
SELECT ROUND(16499.00,0-LOG10(1000))So its
SELECT ROUND(Result,0-LOG10(RoundingNumber))
IS that correct?
Thanks for all your help
Yes, that's right - do you have to handle negatives? If so, it is slightly different because of...
May 20, 2011 at 5:51 am
Sorry, found my mistake
SELECT ROUND(16499.00,0-LOG10(1000))
May 20, 2011 at 5:39 am
sqldba_icon (5/20/2011)
Can someone please tell me where is a CTE stored when declared or used inside a proc? Is it stored in memory or hard disk?
I want to be first...
May 20, 2011 at 5:31 am
cast the result and the rounding value as integers, then divide, then multiply.
May 20, 2011 at 4:57 am
SQLRO (5/20/2011)
SELECT TOP 10 Col1,Col2,Col3FROM myTable WITH(READPAST)
WHERE Col1='XYZ'
AND Col2='ABC'
I believe this will get you ten records that are not locked for update.
Can I lock the records / rows...
May 20, 2011 at 4:23 am
SELECT TOP 10 Col1,Col2,Col3
FROM myTable WITH(READPAST)
WHERE Col1='XYZ'
AND Col2='ABC'
I believe this will get you ten records that are not locked for update.
May 20, 2011 at 3:44 am
Have you restarted SQL Server Service since the sp_addserver?
May 19, 2011 at 3:16 pm
Ninja's_RGR'us (5/19/2011)
Any special way to make your trick work when there are negatives numbers too?
Never tried it - can't think of one off the top of my head!
May 19, 2011 at 2:46 pm
jcrawf02 (5/19/2011)
mister.magoo (5/19/2011)
[rant]This takes the biscuit http://www.sqlservercentral.com/Forums/FindPost1112017.aspx
[/rant]
hahahahaha....sorry you put so much time into that one, but that's pretty funny...
True - at least I had a nice steak in the middle...
May 19, 2011 at 2:36 pm
Viewing 15 posts - 1,381 through 1,395 (of 1,957 total)