Viewing 15 posts - 7,906 through 7,920 (of 18,926 total)
The real advange the the function here is that when (not if but when) the powers that be decide that you need to insert a 3rd value, then all you...
August 12, 2010 at 11:42 am
Here's a version that wouldn't affect performance (or extremly slightly)
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE FUNCTION dbo.FnYesNo
(
@Value TINYINT
)
RETURNS VARCHAR(3)
WITH SCHEMABINDING
AS
BEGIN
RETURN CASE WHEN @Value <> 0 THEN 'YES' ELSE 'NO' END
END
GO
SELECT dbo.FnYesNo...
August 12, 2010 at 11:40 am
Lynn Pettis (8/12/2010)
CELKO (8/12/2010)
tymberwyld (11/10/2008)
August 12, 2010 at 10:59 am
Good point, but with 25 columns (especially if you repeat that query often), I'd consider using a schemabound scalar udf.
I wouldn't expect that logic to change much, but you never...
August 12, 2010 at 10:30 am
That does the trick!
http://stackoverflow.com/questions/972616/string-aggregation-in-ssrs-2005
August 12, 2010 at 8:48 am
If you don't have insurrance, then yes. I don't know if you can get a discount tho... I never explored that option.
August 11, 2010 at 8:12 am
Ya I gave it a whirl on my prod server : 15 minutes for 32K rows... and it's not like we have a slow a busy server here!!!
August 10, 2010 at 8:33 am
From the user interface you cannot set a max size, the only option is to disable auto grow which achieves the same thing.
August 5, 2010 at 3:01 am
Filegrowth = 0 means no auto grow.
Yes if you specify the location that assumes you want to move the files so you need to restart.
August 4, 2010 at 12:21 pm
Here's what I get when I script my modifications from the UI in SSMS
ALTER DATABASE [tempdb] MODIFY FILE ( NAME = N'templog', SIZE = 2097152KB , FILEGROWTH = 0)
BTW 100MB...
August 4, 2010 at 11:31 am
I'm not sure I understand what you are saying. Calculating required space is a very fast operation, what takes time is growing the file. So in that sense,...
August 4, 2010 at 10:25 am
bob_levine (8/3/2010)
I dragged and dropped the parameter onto a text box in the page header. It reads "=Parameters!P_ApptType.Value" meaning the multiple Appointment Types. #Error displays in the preview.
Do you get...
August 3, 2010 at 12:50 pm
The patented "is it plugged in question" :
Are you sure that the datasets are 100% identical on both servers BEFORE applying the order by?
With a linked server you could...
August 3, 2010 at 12:46 pm
Cool, did that affect performance noticably?
July 29, 2010 at 7:06 am
WOW 2315 post from a single SPAM post from a new user... that must be some sort of record. :hehe:
July 23, 2010 at 9:49 am
Viewing 15 posts - 7,906 through 7,920 (of 18,926 total)