Viewing 15 posts - 211 through 225 (of 332 total)
This might be a good place to start. It's server specific but it might give you some ideas about what to look at.
http://technet.microsoft.com/en-us/library/ff898403(v=sql.105).aspx
February 25, 2013 at 10:55 am
Maybe consider vertical partitioning and recreate in a view?
February 25, 2013 at 10:08 am
I've done the same thing using the more generic Tally or Numbers table.
Here's a good article by Jeff about it.
February 22, 2013 at 8:29 am
Was this by chance originally a SQL 2000 database?
February 20, 2013 at 3:51 pm
What was the trick, just in case one of us accidentally does the same thing?
February 20, 2013 at 1:34 pm
Wrap the whole thing in another select and get your min and max values.
February 20, 2013 at 1:17 pm
*bump* Really? Has no one ever tried to do this?
February 20, 2013 at 9:49 am
Nevermind. I found the solution was to put it in a list box.
February 15, 2013 at 2:17 pm
Hey Antonio, have a look at this article by Greg Larson.
http://www.simple-talk.com/sql/learn-sql-server/building-my-first-sql-server-2005-clr/
February 15, 2013 at 8:25 am
Perhaps something like this would put you on ther right track?
select sum(calls) calls, sum(answered) answered, sum(missed) missed
from
(
select case when call = 'anon' then 0 else 1 end as calls
, case...
February 14, 2013 at 1:57 pm
Looks like you need to add @fiscalstart datetime to your procedure parameter block
February 14, 2013 at 1:05 pm
This should give you what you're looking for:
DECLARE @FISCALDATE DATE
DECLARE @ENDDATE DATE
set @ENDdate = '02/01/2012'
SELECT CASE
WHEN datepart(MM,@ENDdate)<= 6
THEN CAST ('01-'+'07-'+ cast((DATEPART(YY,@ENDDATE)-1) as CHAR(4)) as datetime)
ELSE CAST ('01-'+'07-'+...
February 14, 2013 at 12:23 pm
Doh! I looked earlier and swore I couldn't find that SQL 2000 forum but at second glance, I've now located it..
February 13, 2013 at 10:21 am
Viewing 15 posts - 211 through 225 (of 332 total)