Viewing 15 posts - 22,246 through 22,260 (of 59,098 total)
serg-52 (12/8/2014)
--parameter
declare @myPath nvarchar(4000) = 'E:\ElectronicArchieve';
IF OBJECT_ID('tempdb..#DirectoryTree') IS NOT NULL
DROP TABLE #DirectoryTree;
CREATE TABLE #DirectoryTree (
id int IDENTITY(1,1)
,subdirectory nvarchar(512)
,depth...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 10, 2014 at 6:54 pm
rmedeiros (12/10/2014)
--Jeff Moden
Change is inevitable... Change for the better is not.
December 10, 2014 at 6:28 pm
Now that there are multiple methods of cleaning up the data, have you considered cleaning up the source of the data so that this type of stuff doesn't happen to...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 10, 2014 at 6:18 pm
MaggieW (12/10/2014)
I created an application that will upload a csv file and insert it to a SQL table. Some of the columns allow nulls and I would like the...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 10, 2014 at 6:14 pm
clayman (12/10/2014)
See sample data below. I want hourly breakdown for the last X years, the month and day will be the same for each year. Thank you
SELECT '2013-12-10 04:00:00.000'...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 10, 2014 at 6:11 pm
Jeff Shurak (12/10/2014)
--Jeff Moden
Change is inevitable... Change for the better is not.
December 10, 2014 at 4:14 pm
Adam Bean (12/9/2014)
- We turned off transactions from the application performing the bulk inserts - no change.
What "application"???
--Jeff Moden
Change is inevitable... Change for the better is not.
December 9, 2014 at 10:52 pm
Null + Anything = NULL
... but that may not be the problem because HASHBYTES will return an error on a "void", which would be produced by a NULL concatenation.
--Jeff Moden
Change is inevitable... Change for the better is not.
December 9, 2014 at 10:45 pm
ashoktheagarajan (12/9/2014)
Thanks for the reply. I am sorry as my question was not completely clear.
The Week's mentioned needs to be dynamic and not a fixed input as the...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 9, 2014 at 10:43 pm
Did this work out for you?
--Jeff Moden
Change is inevitable... Change for the better is not.
December 9, 2014 at 10:35 pm
Charles Kincaid (12/9/2014)
Jeff Moden (12/9/2014)
E=MC2. If you can't make it go faster, make it heavier. 😀
LOL! When you make it go faster it is heavier. While SQL...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 9, 2014 at 10:32 pm
JKSQL (12/9/2014)
The stored procedure filled a temp table with the parent objects. If the particular...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 9, 2014 at 3:52 pm
Ed Wagner (12/9/2014)
Jeff doesn't hit people with RBAR, he actively campaigns against it. High-velocity pork chops, on the other hand, are fair game. 😀
Hmmmm... maybe butterfly stuffing the pork...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 9, 2014 at 2:06 pm
jshahan (12/9/2014)
The code exploits what many consider to be a "fault" of the date/time data-types. If you present the functions with a 4 character number, T-SQL will treat it as...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 9, 2014 at 2:04 pm
Ok, here we go.
First, we need a couple of functions to make our lives easier. This first one is a modification of the DelimitedSplit8K function that I've been working...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 8, 2014 at 11:38 pm
Viewing 15 posts - 22,246 through 22,260 (of 59,098 total)