Viewing 15 posts - 481 through 495 (of 2,462 total)
hegdesuchi (9/9/2016)
Hi,OPENXML works fine if all have single parent node.
But I might want columns for different nodes. Do we have any option?
Thanks
Post a sample of the XML you're working...
-- Itzik Ben-Gan 2001
September 9, 2016 at 10:11 am
Ed Wagner (9/9/2016)
chris.evans 94907 (9/9/2016)
Following on from this, I'm looking to add a DATEDIFF calculation between today's date 'GETDATE()' and each individual date but only where the Working Day...
-- Itzik Ben-Gan 2001
September 9, 2016 at 8:52 am
OPENXML should work just fine for this task.
-- Itzik Ben-Gan 2001
September 9, 2016 at 7:55 am
Here's some sample data and an example of how to use LAG to get you started.
DECLARE @sometable table (ID int, DeviceID int, Value decimal(8,1), DT datetime);
INSERT @sometable
VALUES
(22, 4, 23.6,...
-- Itzik Ben-Gan 2001
September 8, 2016 at 2:18 pm
Alternatively, you can bypass sys.sql_modules all together and use OBJECT_DEFINITION.
CREATE VIEW MyView
AS
SELECT 1 AS Col1;
GO
SELECT OBJECT_DEFINITION(OBJECT_ID('MyView'))
-- Itzik Ben-Gan 2001
September 8, 2016 at 2:06 pm
corey lawson (9/8/2016)
-- Itzik Ben-Gan 2001
September 8, 2016 at 12:58 pm
Budd (9/8/2016)
Thank you Alan."Not Replicating Triggers" the trigger itself, or the results after a triggered event?
I was talking about the triggers themselves. I had a situation a few years back...
-- Itzik Ben-Gan 2001
September 8, 2016 at 11:10 am
Budd (9/8/2016)
What are the pros and cons that you see for each type of replication in a situation like this?Thanks
The pros are that SQL Server Replication is stable and reliable...
-- Itzik Ben-Gan 2001
September 8, 2016 at 8:41 am
Ditto everything Drew said. We'll need more info to help you.
Perhaps something like this (I did a few permutations based on my best guess of what you need).
SELECT...
-- Itzik Ben-Gan 2001
September 6, 2016 at 4:41 pm
turlteman.mike (9/1/2016)
This looks useful but whrere you have this lineSELECT TOP (1) calDate MIN(caldate)
Is the strikethrough deliberate?
Sorry I almost missed this.
Yes, I was saying that using MIN seemed...
-- Itzik Ben-Gan 2001
September 6, 2016 at 10:43 am
That means the service is either failing to start and crashing. That's something a DBA or Server Admin would have to look into. A service failing to start or crashing...
-- Itzik Ben-Gan 2001
September 1, 2016 at 8:41 am
Adam Sandler (9/1/2016)
Any settings I can apply to make...
-- Itzik Ben-Gan 2001
September 1, 2016 at 8:17 am
Can you provide an example of what you are getting as well as what you should be getting?
-- Itzik Ben-Gan 2001
September 1, 2016 at 7:41 am
Adam Sandler (9/1/2016)
-- Itzik Ben-Gan 2001
September 1, 2016 at 7:37 am
Everyone has touched on this but the most important thing to understand is: the only way to guarantee that results are returned in a specific order is with an ORDER...
-- Itzik Ben-Gan 2001
August 31, 2016 at 8:42 am
Viewing 15 posts - 481 through 495 (of 2,462 total)