Viewing 15 posts - 601 through 615 (of 1,473 total)
Here's a test script. You'll notice that it doesn't actually delete any rows when executed with FMTONLY ON.
USE tempdb
CREATE TABLE Test( TestIntint)
INSERT INTO Test(TestInt) SELECT 1
GO
CREATE PROCEDURE TestSP
AS
DELETE FROM...
September 29, 2009 at 3:09 pm
Matt Whitfield (9/29/2009)
September 29, 2009 at 3:02 pm
sql_novice_2007 (9/29/2009)
Hi Pradeep,I need to have a comma between each location. Mark's idea was very close to my requirement .
Thank you very much for your help.
Pradeep's method can also use...
September 29, 2009 at 10:23 am
;WITH Filter AS (
SELECT TOP 500 Convert(money,SubString(strrow,8,5) amount
FROM tComments
where strrow like '%Value:%'
ORDER BY DateStamp DESC)
SELECT SUM(Amount) Amount FROM Filter
Or if you prefer the 2000 version:
SELECT SUM(Amount) Amount
FROM (
SELECT...
September 29, 2009 at 9:52 am
This is what cursors were made for. This is a basic gist because I never remember the exact cursor syntax off the top of my head. (And make it...
September 29, 2009 at 9:43 am
Need more information. What precisely is your question? What does that query return?
Also, is there a reason you're converting dates to varchars in your case statements?
September 29, 2009 at 9:35 am
Can you be a little more specific about what 'didn't work' means?
SELECT SUM(Convert(money,SubString(strrow,8,5)))
from tComments
where strrow like '%Value:%'
should work. If it doesn't, post the error/result.
September 29, 2009 at 9:29 am
While updating the view is an interesting addition, it does not necessarily prove anything in regards to the 3 part update. Your examples use only a 2 part update....
September 29, 2009 at 7:58 am
I realized after the fact that it might have been a little unclear as to why I didn't believe Barry's solution didn't *beat* the quirky update, as the quirky takes...
September 28, 2009 at 3:54 pm
Ok, so I had some time back at my machine to test your solution Barry. It comes very close to tying the quirky update, but doesn't *quite* manage it....
September 28, 2009 at 10:08 am
Dave Ballantyne (9/28/2009)
Jeff Moden (9/28/2009)
Heh... what ordering issues?
Well , just that on your base table , you dont ( disclaimer More testing needed) need a clustered index in the...
September 28, 2009 at 9:40 am
Sorry, I just got back from a cruise to the Bahamas, have been completely unplugged from the world for 4 days now. May take today to 'recover' from my...
September 27, 2009 at 7:58 am
Is there any reason you have to use openquery instead of just a linked server query?
September 23, 2009 at 3:14 pm
SSSolice (9/23/2009)
SUM(coalesce(Case_Count,0))
...should return 0 when Case_Count IS NULL. I would try it on a narrow result set without the other aggregate and without the other attributes.
This is true...
September 23, 2009 at 2:56 pm
From your sample data, it looks like you have two issues. The first is how to identify which is the first, second or third color. Not sure if...
September 23, 2009 at 7:35 am
Viewing 15 posts - 601 through 615 (of 1,473 total)