Viewing 15 posts - 3,421 through 3,435 (of 8,753 total)
Quick suggestion, slightly different but easy to scale on large number of columns
😎
USE TEEST;
GO
SET NOCOUNT ON;
--
declare @sampledata Table
(
ID int
, [Date] Date
...
July 23, 2016 at 1:24 am
Quick thought, although not too efficient Jacob's xmlTable function could be what you are looking for.
😎
July 23, 2016 at 12:49 am
Or the other way around
😎
SELECT
T1.ID
,T2.XDATE
FROM dbo.TABLE1 T1
RIGHT...
July 22, 2016 at 10:15 pm
I have only used this method on production 2008 and 2012, used it on testing 2014 it worked fine including the machine I'm writing this answer on.
😎
July 22, 2016 at 9:58 pm
Simply enable Ole Automation Procedures
😎
--SHOW ADVANCED OPTIONS
EXEC sp_configure 'show advanced options',1;
RECONFIGURE WITH OVERRIDE;
-- ENABLE OLE AUTOMATION PROCS
EXEC sp_configure 'Ole Automation Procedures',1;
RECONFIGURE WITH OVERRIDE;
-- HIDE ADVANCED OPTIONS
EXEC sp_configure 'show advanced options',0;
RECONFIGURE...
July 22, 2016 at 1:52 pm
Eirikur Eiriksson (7/21/2016)
a) 2016-01-01 ==> 2014-04-01...
July 22, 2016 at 8:13 am
Quick questions, do you have recent good backups? What did you try before using REPAIR_ALLOW_DATA_LOSS?
😎
July 22, 2016 at 2:31 am
This shouldn't be too hard, even calling the web service from SQL Server is straight forward, here is an example function from this thread
😎
CREATE function [dbo].[GetHttp]
(
@url...
July 21, 2016 at 11:00 pm
Ed Wagner (7/21/2016)
Heh - And you even did it without a LEAD() for SQL 2008. Nice job, Eirikur.
Done this or similar to this since 4.2, haven't forgotten it yet;-)
😎
July 21, 2016 at 8:27 am
Quick suggestion
😎
/* -- ENABLE XP_CMDSHELL
EXEC SP_CONFIGURE 'show advanced options', 1
RECONFIGURE WITH OVERRIDE;
EXEC SP_CONFIGURE 'xp_cmdshell',1;
RECONFIGURE WITH OVERRIDE;
*/
DECLARE @services TABLE
(
SRV_TXT NVARCHAR(150) ...
July 21, 2016 at 7:53 am
Only one modification can be made at a time with the XML modify method, the workaround is to reconstruct the XML and replace the previous value, here is a quick...
July 21, 2016 at 7:19 am
Good stuff! Here is a quick example which should get you passed this hurdle
😎
USE TEEST;
GO
SET NOCOUNT ON;
--
IF OBJECT_ID(N'dbo.request_log') IS NOT NULL DROP TABLE dbo.request_log;
CREATE TABLE dbo.request_log(
[id] [int] IDENTITY(1,1) NOT NULL,
[request_id]...
July 21, 2016 at 6:36 am
Quick question out of curiosity, why would you move this into the SSIS dataflow when it will most likely be both simpler and faster when done at the SQL Server...
July 21, 2016 at 5:33 am
Quick question, if the date is earlier than the 1st of April then should it return the year - 2 or -3?, i.e.
a) 2016-01-01 ==> 2014-04-01 (21 months)
...
July 21, 2016 at 5:01 am
zenm (7/21/2016)
July 21, 2016 at 4:50 am
Viewing 15 posts - 3,421 through 3,435 (of 8,753 total)