Viewing 15 posts - 166 through 180 (of 430 total)
Jeff Moden (6/4/2014)
Luis Cazares (6/4/2014)
sqldriver (6/4/2014)
June 4, 2014 at 4:15 pm
June 4, 2014 at 10:10 am
Luis Cazares (5/29/2014)
CREATE FUNCTION [dbo].[ProperCaseWithNumbers]
(
@StrIn VARCHAR(255)
)
RETURNS TABLE WITH SCHEMABINDING
AS
RETURN
SELECT STUFF(
----Start of first parameter
(SELECT CASE
WHEN split.Item LIKE '%[0-9]%'
THEN ' ' + split.Item
ELSE ' ' + Upper(LEFT(split.Item, 1)) + Lower(Substring(split.Item,...
June 4, 2014 at 9:00 am
mister.magoo (5/30/2014)
It is probably because the presence of the UNION is removing duplicates, not just between the three queries but within the results of each query as well.
:angry:
May 30, 2014 at 5:59 pm
Sean Lange (5/30/2014)
sqldriver (5/30/2014)
Sean Lange (5/30/2014)
sqldriver (5/30/2014)
I take no responsibility for repeatedly calling a function on an insert or using ISNUMERIC on a function like it's my birthday.
LOL. Yes that...
May 30, 2014 at 3:28 pm
Sean Lange (5/30/2014)
sqldriver (5/30/2014)
I take no responsibility for repeatedly calling a function on an insert or using ISNUMERIC on a function like it's my birthday.
LOL. Yes that is particularly horrible....
May 30, 2014 at 2:55 pm
Sean Lange (5/30/2014)
sqldriver (5/30/2014)
Just came across some weird legacy code in my system where an INSERT is followed by three UNIONs of the exact same query. What's the purpose of...
May 30, 2014 at 2:24 pm
Ah, fooey. Needed to keep the datediff between the two to seven for weekly backups. 😎
SELECT t.database_name
, t.backup_size
...
May 23, 2014 at 9:36 am
Thanks Chris. I'll do some testing this week with that concept.
May 11, 2014 at 6:44 pm
Thanks Gail. That's the much smarter way of saying what I was thinking.
May 9, 2014 at 4:41 pm
sqldriver (5/9/2014)
GilaMonster (5/9/2014)
If you can't drop or change indexes, how do you expect to...
May 9, 2014 at 9:54 am
GilaMonster (5/9/2014)
If you can't drop or change indexes, how do you expect to tune...
May 9, 2014 at 9:41 am
Sean Lange (5/9/2014)
sqldriver (5/9/2014)
May 9, 2014 at 9:32 am
GilaMonster (5/9/2014)
Let's see...
CREATE INDEX [IX_tbl_extr_items_Collection_Surr_Id_3E6F809B-F53A-48FC-81A1-E6F7504DF641] ON [dbo].[tbl_extr_items] ( [Collection_Surr_ID] ) INCLUDE ( [active]) WITH (FILLFACTOR=100, ONLINE=?, SORT_IN_TEMPDB=?);
CREATE INDEX [Ind_collsurr_prostatus_item_computer_3E6F809B-F53A-48FC-81A1-E6F7504DF641] ON [dbo].[tbl_extr_items] (...
May 9, 2014 at 9:26 am
Best practice for MAXDOP is usually set to it to the number of physical cores in a NUMA node. How did you arrive at 5? Sorry if I missed something.
When...
May 9, 2014 at 7:37 am
Viewing 15 posts - 166 through 180 (of 430 total)