Viewing 15 posts - 2,221 through 2,235 (of 8,760 total)
May 6, 2017 at 11:39 am
Quick suggestion, use the REPLACE function
😎USE TEEST;
GO
SET NOCOUNT ON;
DECLARE @FOLDER_TO_REPLACE VARCHAR(50) = '\DEF\';
;WITH FilePaths(FilePath) AS
( SELECT FilePath FROM
May 5, 2017 at 5:26 am
I am trying to copy data from a flat file (CSV) which has multiple headers...
May 5, 2017 at 5:15 am
Quick thought, no need for this complexity in the script, here is a simplified example
😎declare @myXml xml=N'<MyXML>
<NewComponents>
<TopRef locpoint="BSAMMUSA" >242
<Comps...
May 3, 2017 at 7:48 am
One can use the DigitsOnlyEE function for this
😎USE [TEEST]
GO
SET NOCOUNT ON;
DECLARE @NUMSTRING TABLE (NMSTR VARCHAR(20) NOT NULL);
INSERT INTO @NUMSTRING(NMSTR)
VALUES...
May 3, 2017 at 5:11 am
For fun
😎
USE TEEST;
GO
SET NOCOUNT ON;
DECLARE @NUM_QUARTERS INT = 7;
;WITH T(N) AS (SELECT X.N FROM (VALUES (0),(0),(0),(0),(0),(0),(0),(0),(0),(0)) X(N))
, NUMS(N) AS...
May 3, 2017 at 3:34 am
Just piling on, since you are on 2008+ then you can combine the declaration and the assignment into one statement.
😎declare @scorerecordtype__c varchar(50) = 'batch';
select...
May 1, 2017 at 10:19 am
One thought, you could use the Open XML word processing schema, zip it and rename to doc whatever, not a trivial exercise though.
😎
May 1, 2017 at 10:08 am
If you know the algorithm used then you could theoretically use a rainbow table to find the original values, somewhat elaborate exercise.
😎
May 1, 2017 at 8:53 am
SELECT ? FROM [QA_rowperclient]
is not a valid query
😎
April 29, 2017 at 7:11 am
DECLARE @j NVARCHAR(max) = N'[{"Views":1,"Date":1493119613,"MediaCaption":"test"}]'
i want to add...
April 29, 2017 at 7:06 am
April 29, 2017 at 6:57 am
Quick question, why is there no root element in the xml?
😎
April 29, 2017 at 5:01 am
Viewing 15 posts - 2,221 through 2,235 (of 8,760 total)