Viewing 15 posts - 511 through 525 (of 2,458 total)
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...
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...
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...
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...
August 24, 2016 at 8:49 am
Have a look at Data Driven Subscriptions.
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...
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...
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...
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.
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...
August 23, 2016 at 4:57 am
Great article. Well done. Scary.
August 23, 2016 at 4:38 am
Francis Twomey (8/22/2016)
INSERT INTO item_relation_table
(parent__id,
child__id,
relation)
SELECT xm.1_id, xm.2_ID,
'A',
from tablexm xm
where xm.1_id != xm.2_ID and
exists(select 1 from item ip WHERE ip.mfg =...
August 22, 2016 at 2:57 pm
This should be fine with SQL Server 2005+
-- sample data
CREATE TABLE #calendarTable (calDate datetime NOT NULL, workingDay char(1) NOT NULL);
WITH base AS
(
SELECT TOP (366)
...
August 19, 2016 at 10:19 am
I have a couple ideas I'll play around with when I'm at a PC shortly.
non-nullable Tinyint having (-1,0,1) as possible values
tinyint can't be negative 😉
August 19, 2016 at 7:29 am
DentalDBA (8/18/2016)
Does anyone know if Microsoft is thinking about doing away or not supporting database replication in the future? Do they have other ways to copy transaction changes?Thanks
I have...
August 18, 2016 at 2:40 pm
Viewing 15 posts - 511 through 525 (of 2,458 total)