Viewing 15 posts - 2,551 through 2,565 (of 5,504 total)
Marcus Farrugia (11/22/2010)
@Lutz: "coding standards"
LOL...sad to say...it's pretty much whatever gets the job done in the fastest time possible.
That's not sad, it rather gives you total flexibility 😀
November 22, 2010 at 12:05 pm
WayneS (11/22/2010)
Lutz - wouldn't the temp tables that I used handle that? Otherwise, you end up with 4 procs to...
November 22, 2010 at 11:21 am
I was about leaving a party-note since Steve's out until the 29th (got a out-of-office reply for a reported thread).
But given the latest news I don't think it's appropriate...
I wish...
November 22, 2010 at 10:40 am
November 22, 2010 at 10:30 am
I'd use a TallyTable based method:
DECLARE @day DATETIME, @interval INT
SET @interval = 15
SET @day = '2010-11-22'
;
WITH splitTimes AS
(
SELECT DATEADD(MINUTE, @interval * (N-1), @day) splitTime
FROM Tally
WHERE N<=(24*60/@interval)
)
SELECT
agent.Agent,
cast(sp.splitTime...
November 22, 2010 at 10:01 am
wannalearn (11/22/2010)
the status is failed..
hmm.. let me quote from my previous post:
...if failed, what message?
November 22, 2010 at 8:43 am
Is this your actual table design? :pinch:
You should really consider to normalize your table structure.
You'd need separate tables for Persons, Buildings and BuildingsOccupied.
Based on that, the query becomes rather simple.
Regarding...
November 21, 2010 at 3:23 pm
How about adding a comma after the [TYPE] column?
November 21, 2010 at 3:13 pm
Sounds like FOR XML PATH is the way to go:
SELECT
DATE,
STUFF((SELECT '|' + Symbol FROM #test t2 WHERE t2.date = t1.date AND UpDown = 1 ORDER BY symbol FOR XML PATH('')),1,1,'')
FROM...
November 21, 2010 at 2:33 pm
Do have a TRY ... CATCH block inside your sproc [myprocedure], that would print any error message?
November 21, 2010 at 5:03 am
Please post the code and your expected result/output.
And please explain what you mean by "each and every error".
November 21, 2010 at 3:36 am
bitbucket-25253 (11/20/2010)
All this gibbering and jabbering about age -- Your are all youngsters.
I've got a GREAT GRAND DAUGHTER born on April 2nd, 2010. As Jeff Moden once said...
November 20, 2010 at 4:58 pm
Please remember: we don't know your table structure nor your business case. All we know is what you posted.
And based on that, I don't think we can really help you.
You...
November 20, 2010 at 6:45 am
duplicate post.
Please reply here
November 20, 2010 at 6:39 am
Viewing 15 posts - 2,551 through 2,565 (of 5,504 total)