Viewing 15 posts - 1 through 15 (of 34 total)
blasto_max (1/14/2014)
SQL Padawan (1/14/2014)
A simple queue system should work for you. There are plenty of SSIS queue frameworks on the internets. 😀
Please tell me more about this and how it...
January 14, 2014 at 4:15 pm
A simple queue system should work for you. There are plenty of SSIS queue frameworks on the internets. 😀
January 14, 2014 at 1:48 pm
Posting this here...knowledge is wealth.
I tried to start different packages simultaneously and started receiving dead-lock errors.
I finally found a solution to the dead lock issue and my original post after...
November 15, 2012 at 9:35 am
Why not start with something like this to build your query or inserts around...?
SELECT name,addy,ph,subject,grade
FROM #test CROSS APPLY (VALUES('subject 1',grade1),('subject 2',grade2),('subject 3',grade3),('subject 4',grade4),('subject 5',grade5)) AS x(subject,grade)
September 10, 2012 at 12:30 pm
Lynn Pettis (8/28/2012)
Greg Snidow (8/28/2012)
CELKO (8/27/2012)
We do not care
Now let's not be too hasty. Some of us do care. In fact, I'd hazard a guess that if the...
August 29, 2012 at 5:59 am
^^^ lol. I need to change the moniker.
Here is a revised version eliminating the GROUP BY and/or DISTINCT clauses. I especially dislike using either of those to return non-aggregated data....
August 21, 2012 at 7:39 am
The code below ran pretty fast on my desktop. Give it a try:
SELECT DISTINCT @holder1 = s1.SaleID,@holder2 = LocationID
FROM #Sale s1
INNER JOIN #SaleLocationXref SLX1 ON S1.SaleID = SLX1.SaleID
INNER JOIN #SaleItemXref...
August 20, 2012 at 5:46 pm
Can you provide some more sample data of the following?
PARENT
/ ...
August 9, 2012 at 7:21 pm
I could be wrong but Celko's method is the fastest. One thing to keep in mind is the LEN function's limit is 8000 characters or in other words the sum...
August 5, 2012 at 1:36 pm
This is the first thing that came to mind...try this:
IF OBJECT_ID('tempdb..#MapIDs') IS NOT NULL
DROP TABLE #mapids
CREATE TABLE #MapIDs
(
ID INT IDENTITY(1,1),
WonkyID CHAR(8) NOT NULL,
Client VARCHAR(50) NULL,
Identifier1 VARCHAR(12) NULL,
Identifier2 VARCHAR(20) NULL,
CONSTRAINT...
July 31, 2012 at 8:57 am
Here are two different methods for accomplishing the same goal. One uses hierarchyid, while the other uses a simple LEFT join. Excuse my bad grammar on my lack of coffee....
July 31, 2012 at 5:45 am
I really am having fun with hierarchyids but here is a solution assuming there are only 5 levels. 😛
I had to tweak the code I wrote earlier.
DECLARE @TEMP AS TABLE
(Orgunitcode...
July 24, 2012 at 8:45 am
You need to flatten out your dates to use Jeff's methods using something similar to this code:
declare @Dates table
([Row] int NOT NULL,
[OrgID] varchar(50) NOT NULL,
[StartDate] date NULL,
[EndDate] date NULL)
Insert into...
July 24, 2012 at 8:15 am
Jeff Moden (7/23/2012)
SQL Padawan (7/23/2012)
July 23, 2012 at 9:44 pm
^^^ Too much text for me to read right now 😉 But here is a solution using Hierarchyid just for the heck of it. I'm not the best at writing...
July 23, 2012 at 4:33 pm
Viewing 15 posts - 1 through 15 (of 34 total)