Viewing 15 posts - 511 through 525 (of 2,462 total)
Luis Cazares (8/25/2016)
The Dixie Flatline (8/25/2016)
But isn't the problem with just replacing spaces is that it doesn't deal with other special characters?It depends on what you're doing.
My strategy (which varies...
-- Itzik Ben-Gan 2001
August 25, 2016 at 1:30 pm
ScottPletcher (8/25/2016)
/*CREATE FUNCTION ...*/
SELECT REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(LTRIM(RTRIM(@Text)),
SPACE(33), ' '),
SPACE(17), ' '),
...
-- Itzik Ben-Gan 2001
August 25, 2016 at 12:25 pm
Joins are one of the four table operators in MS SQL Server (the others are APPLY, PIVOT and UNPIVOT). Joins are used for joining tables (real or derived).
INTERSECT, EXCEPT, UNION...
-- Itzik Ben-Gan 2001
August 25, 2016 at 5:22 am
BWFC (8/25/2016)
Prefect
day
-- Itzik Ben-Gan 2001
August 25, 2016 at 4:55 am
Welcome to the SQLServerCentral forums.
This should be easy to sort out but it would help if you could provide some DDL, a few rows of sample data and an...
-- Itzik Ben-Gan 2001
August 25, 2016 at 4:51 am
ben.brugman (8/23/2016)
I would like a solution without the FOR XML, is there one ?
I think there is. I generally avoid scalar user defined functions like the plague but check this...
-- Itzik Ben-Gan 2001
August 24, 2016 at 9:54 pm
Matt Miller (#4) (8/24/2016)
mister.magoo (8/24/2016)
Sergiy (8/24/2016)
mister.magoo (8/23/2016)
declare @x xml;
select @x=(
select ''+b
from
(
select 'hello;friend'+CHAR(13)+CHAR(10)
union all
select 'my;world'+CHAR(13)+CHAR(10)
)a(b)
for xml path(''),type);
select @x.value('(./text())[1]','nvarchar(max)')
the important things...
-- Itzik Ben-Gan 2001
August 24, 2016 at 9:09 pm
ben.brugman (8/23/2016)
is not the purpose and not a target it is only the means to get to something.
So why FOR XML? The reason for this is that FOR XML concatenates...
-- Itzik Ben-Gan 2001
August 24, 2016 at 8:49 am
Have a look at Data Driven Subscriptions.
-- Itzik Ben-Gan 2001
August 23, 2016 at 12:14 pm
It looks like you can re-write your code to eliminate the cursor - that cursor is going to slow you down. I would also run this stored procedure using WITH...
-- Itzik Ben-Gan 2001
August 23, 2016 at 11:57 am
With FOR XML a large string is build from tablecontent.
The result is stored as a XML datatype in a table.
What is the purpose of this?
If the primary purpose is...
-- Itzik Ben-Gan 2001
August 23, 2016 at 11:41 am
As Phil eluded to, this is best handled via source control. Another way to get collect definitions is to use dbo.sp_GetDDL[/url]
This is a script I use to pull all your...
-- Itzik Ben-Gan 2001
August 23, 2016 at 11:12 am
growlingly poor English
:hehe::hehe::hehe: +1
I never heard the word growlingly before so I looked up the Webster definition.
Growl´ing`ly
adv.1.In a growling manner.
-- Itzik Ben-Gan 2001
August 23, 2016 at 7:01 am
The only way to know what's happening now and how adding an index will change things is to look at the execution plan before and after and test it.
Based on...
-- Itzik Ben-Gan 2001
August 23, 2016 at 4:57 am
Great article. Well done. Scary.
-- Itzik Ben-Gan 2001
August 23, 2016 at 4:38 am
Viewing 15 posts - 511 through 525 (of 2,462 total)