Viewing 15 posts - 22,216 through 22,230 (of 59,072 total)
ramana3327 (12/10/2014)
We are using Sql server 2008R2 and windows server 2008R2.
To increase the vCPU for the server and the server need to be restarted.
Do we need to shut down...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 10, 2014 at 11:25 pm
Ah... sorry. I see what the difference is now.
Kevin's answer uses Itzik Ben-Gan's "inline" version of a "Tally Table". It' sometimes a bit slower (and I...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 10, 2014 at 11:16 pm
Ah... Just a note. This DOES constitute a "Triangular Join", which can make things pretty slow unless you add some proper indexes. I ran it against C:\Windows and...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 10, 2014 at 9:57 pm
Understood.
Here's the concatenated ID's thing. The only thing that I needed to change in the original data is that the CEO cannot report to him/herself. The CEO reports...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 10, 2014 at 9:50 pm
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
Viewing 15 posts - 22,216 through 22,230 (of 59,072 total)