Viewing 15 posts - 211 through 225 (of 557 total)
Bit late 😀
I was looking for a similar question and found:DECLARE @DumbTable TABLE (cat CHAR(1), id TINYINT, rw TINYINT);
INSERT INTO @DumbTable SELECT 'A' as cat, 3 as id, 1 as...
October 10, 2016 at 6:02 am
Additional scripting for testing the special characters, to be run after the table is populated:
--
-- After creating and populating the table I reduce the number of groups TO 1
--
delete strings...
August 25, 2016 at 4:04 am
Hello Alan and others,
First thanks for supplying the scripts and the timings.
Great.
Alan.B (8/24/2016)
Well, well... 4,577 reads for the scalar udf vs 69,222 with the XML PATH method (regardless of special...
August 25, 2016 at 3:05 am
Alan.B (8/24/2016)
storing the text as text (varchar or nvarchar) is the way to go if you're not doing that.
Note this article by Wayne Sheffield about this XML concatenation technique,...
August 24, 2016 at 4:16 pm
Sergiy (8/22/2016)
My script does not produce errors.
This query:
select '1500-02-29' date, DATENAME(dw,'1500-02-29'), DATEPART(dw,'1500-02-29')
results in conversion error ....
Sorry I thought that the script was yours and that it resulted in...
August 23, 2016 at 3:12 pm
Here is some sample data.
This data is adapted from:
http://www.sqlservercentral.com/Forums/Topic1744128-391-1.aspx#bm1744270
2015-10-12 7:09:13 AM (This is shown at my location).
First part of the data generates 40 000 words.
The words are quoted with...
August 23, 2016 at 3:06 pm
mister.magoo (8/23/2016)
the important things are to use ",type" in the FOR XML PATH... and to extract the ".value" of the...
August 23, 2016 at 2:24 pm
mister.magoo (8/23/2016)
To answer your question about how (not getting involved in why)
Thanks mister magoo,
I can not confirm yet if this works, so I have to try that a bit later.
I'll...
August 23, 2016 at 1:10 pm
Thanks all,
This is done from my tablet and therefore I have no code of example handy.
XML
is not the purpose and not a target it is only the means to get...
August 23, 2016 at 12:32 pm
mister.magoo (8/22/2016)
WHERE ABS(Float1 - Float2)<@Variance
So, for comparing to 2 d.p. I set @Variance = 0.01
to compare to 4...
August 23, 2016 at 8:43 am
Sergiy (8/21/2016)
..., because 1500-02-29 is not a valid date ....
If you have read my message, you can see that the mentioned dates have some importance to Columbus. I am only...
August 22, 2016 at 5:59 am
Steve Jones - SSC Editor (8/16/2016)
IF you or anyone else wanted to write an article, or series, on dealing with CSV...
August 18, 2016 at 1:28 pm
ChrisM@Work (8/16/2016)
How do you currently distinguish between data which is 'useful' and data which is not?
After the date is inserted and put into columns. The column_names (from the file) and...
August 16, 2016 at 6:54 am
The question was:
So how would you load/parse/store the data were all unnecessary data is filtered out before it is inserted ?
Given are the CSV files.
No additional Meta data is supplied.
The...
August 16, 2016 at 5:37 am
Sergiy (8/2/2016)
I believe building tables to hold the unnecessary data, load it, parse, store (even temporarily) will cause quite a performance hit. With no any benefits.Don't you think?
No I do...
August 15, 2016 at 2:15 am
Viewing 15 posts - 211 through 225 (of 557 total)