Viewing 15 posts - 4,516 through 4,530 (of 6,486 total)
Peter Tuffin (2/27/2008)
February 27, 2008 at 7:26 am
Roy Ernest (2/27/2008)
I have doubt.... Since Stored Procs can have recompiles and then take bad query plans, cant view also have that same issue?
Non-indexed views aren't compiled separately, so...
February 27, 2008 at 7:11 am
Lowell - if you're on 2005 - use CLR instead to create the REGEX expressions instead. The XP is nice in 2000, but you can do better in 2005.
February 27, 2008 at 7:06 am
Refusing to consider using a temporary table is going to cost you dearly in performance. The one way to do such a thing creates a dataset with very high...
February 27, 2008 at 6:48 am
Actually - I've been finding that using ROW_NUMBER() is substantially less effort than than the aggregate function method. Not quite sure why - but it seems to do better.
;with...
February 26, 2008 at 10:18 pm
Fair enough - but there is one on SQL 2005, and it don't work either.
126 (4)
ISO8601
yyyy-mm-ddThh:mi:ss.mmm (no spaces)
127(6, 7)
ISO8601 with time zone...
February 26, 2008 at 9:01 pm
I'm assuming that's the database engine, right? That will in fact run.
If on the other hand, you get SSRS (reporting services) installed OR running on home premium -...
February 26, 2008 at 7:21 pm
David -
Lynn is using what is called a CTE (common table expression). BOL will give you lots of examples of how it can be used. It's pretty nice...
February 26, 2008 at 6:01 pm
Use the datediff function, and store the difference in a datetime field. Use the convert to show what you want to see
declare @startdate datetime
declare @EndDate datetime
set @StartDate = '2008-02-26...
February 26, 2008 at 5:44 pm
why shrink the files at all? Leave the log files to be whatever size they need to be between backups. Continuously truncating them (which then forces them to...
February 26, 2008 at 5:31 pm
It certainly does work. Your security is going to make it a little tricky, in that one reason to maintain it in a SINGLE XML fragment is to leverage...
February 26, 2008 at 5:27 pm
use an "old-style" pivot command:
select dateadd(day,datediff(day,0,datein),0) Datein,
AdID,
sum(Case when leadstatus=1 then 1 else...
February 26, 2008 at 5:15 pm
From what I've found - it depends on the version of Vista you're running. If you're not running Vista Business or Vista Ultimate, you don't get full access to...
February 26, 2008 at 1:59 pm
Also - don't assume that SQL 2005 will use the same indexes as 7.0, nor that the optimizer will at all act the same as 7. It looks to...
February 26, 2008 at 1:47 pm
Look up creating a "scalar function". That's a function returning a single value as opposed to returning an entire table.
create function myfunc(@myparams int, ...)
RETURNS @bob int
as
BEGIN
.....
RETURN
END
February 26, 2008 at 1:36 pm
Viewing 15 posts - 4,516 through 4,530 (of 6,486 total)