Viewing 15 posts - 7,261 through 7,275 (of 8,753 total)
And now for the Window function solution with somewhat increased verbosity in order to explain how it works. It is more efficient than the previous code as it only scans...
August 30, 2014 at 6:24 am
Here is a slightly verbose and hopefully self explanatory set based approach.
😎
USE tempdb;
GO
SET NOCOUNT ON;
/* To rebuild the table, first execute the line below by highlighting it + F5,...
August 30, 2014 at 1:29 am
Does anyone have the Crystal Ball, oops I mean Crystal Reports (help needed)
😎
August 29, 2014 at 1:18 pm
Thank you Scott, Tom and Lynn, this was the discussion I wanted to get going in this context. The subject is far to dependent on the environment and the nature...
August 29, 2014 at 1:15 pm
I agree with Luis, a while loop is not needed in this query.
😎
August 29, 2014 at 12:45 pm
Good stuff, glad you got this resolved.
This is less of a problem on 2K8 R2 and later, not certain why, just my experience. As a rule of thumb, I try...
August 29, 2014 at 12:42 pm
ScottPletcher (8/29/2014)
patrickmcginnis59 10839 (8/29/2014)
CELKO (8/22/2014)
What do you use for the PK on lookup tables?
I use the encoding that is being used. The IDENTITY property (not a column!) is the...
August 29, 2014 at 10:26 am
Within the SysInternals utility you can filter the output on a folder, the file handle will show up there during the Data Flow task execution. The question is whether SSIS...
August 29, 2014 at 10:20 am
Quick thought, grab the SysInternals utility which shows open files, cannot remember the name but should be easy to find. It will show if any process is accessing the file....
August 29, 2014 at 10:06 am
Duran (8/29/2014)
August 29, 2014 at 7:06 am
Quick question, are you on SQL Server 2008 (not R2) 32bit?
😎
August 29, 2014 at 2:05 am
Quick suggestion, count each table content in a separate CTE and join them for the combined results
😎
USE tempdb;
GO
/* Test data */
WITH SYNCHMESSAGE (M_KEY,M_MSG) AS
(
SELECT
...
August 28, 2014 at 11:05 pm
Evil Kraig F (8/28/2014)
August 28, 2014 at 10:47 pm
In my opinion, setting the actual port number for each instance should be avoided unless absolutely necessary. Leave this to the SQL Server Browser Service
😎
August 28, 2014 at 10:37 pm
Viewing 15 posts - 7,261 through 7,275 (of 8,753 total)